Skip to content

Commit b0f0de4

Browse files
feat: add windows and mac testing
run tests on windows and mac to provide support for them as well make windows pass #1 make windows pass #2 make windows pass #3
1 parent 4bb2f17 commit b0f0de4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/lint_test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,12 @@ jobs:
113113
[flake8] %(code)s: %(text)s'"
114114

115115
test:
116-
runs-on: ubuntu-latest
116+
runs-on: ${{ matrix.os }}
117117
strategy:
118118
fail-fast: false
119119
matrix:
120120
python_version: ['3.8', '3.9']
121+
os: [ubuntu-latest, windows-latest, macos-latest]
121122
env:
122123
PYTHON_VERSION: ${{ matrix.python_version }}
123124
steps:
@@ -154,19 +155,19 @@ jobs:
154155
- name: Install dependencies using poetry
155156
if: steps.python_cache.outputs.cache-hit != 'true'
156157
run: |
157-
pip install poetry
158-
poetry install --no-interaction --no-ansi
158+
python -m pip install poetry
159+
python -m poetry install --no-interaction --no-ansi
159160
160161
# Run tests with pytest-cov to generate a coverage report
161162
# This is saved to ./.coverage to be used by codecov to link a
162163
# coverage report to github.
163164
- name: Run tests and generate coverage report
164-
run: pytest -n auto --dist loadfile --cov --disable-warnings -q
165+
run: python -m pytest -n auto --dist loadfile --cov --disable-warnings -q
165166

166167
# This step will publish the coverage reports to codecov.io and
167168
# print a "job" link in the output of the GitHub Action
168169
- name: Publish coverage report to codecov.io
169-
run: codecov
170+
run: python -m codecov
170171

171172
artifact:
172173
name: Generate Artifact

0 commit comments

Comments
 (0)