Skip to content

Commit

Permalink
ci(github-workflows): add testing on MacOS and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassebestik committed Oct 1, 2024
1 parent 71b76c0 commit e729541
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/plugin-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,27 @@ jobs:
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

0 comments on commit e729541

Please sign in to comment.