Skip to content

Fix/double header bump #4

Fix/double header bump

Fix/double header bump #4

Workflow file for this run

---
name: 📸 Pytest (compare with snapshots)
on:
pull_request:
push: {branches: master}
jobs:
plugin-tests:
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install --require-virtualenv --upgrade pip
pip install --require-virtualenv '.[test]'
- name: Run pytest, compare output with stored snapshots
run: |-
source venv/bin/activate
pytest -s
shell: bash # Default shell for macOS and Ubuntu
- name: Run pytest, compare output with stored snapshots (Linux/macOS)
if: runner.os != 'Windows'
run: |
. venv/bin/activate
pytest -s
shell: bash
- name: Install dependencies (Windows)
if: runner.os == 'Windows'
run: |
python -m venv venv
venv\Scripts\activate
pip install --require-virtualenv --upgrade pip
pip install --require-virtualenv '.[test]'
shell: cmd
- name: Run pytest, compare output with stored snapshots (Windows)
if: runner.os == 'Windows'
run: |
venv\Scripts\activate
pytest -s
shell: cmd