@@ -5,21 +5,22 @@ on: [push, pull_request]
55jobs :
66
77 run-tests :
8- runs-on : ubuntu-latest
98 strategy :
109 matrix :
10+ os : [ubuntu, macos, windows]
1111 python-version : ["3.9", "3.10", "3.11"]
12+ runs-on : ${{ matrix.os }}-latest
1213 steps :
1314 - name : Check out repository
1415 uses : actions/checkout@v3
1516
16- - name : Set up Python ${{ matrix.python-version }}
17+ - name : Set up Python
1718 uses : actions/setup-python@v4
1819 with :
1920 python-version : ${{ matrix.python-version }}
2021
2122 - name : Install Poetry
22- run : curl -sSL https:// install.python-poetry.org | python3 -
23+ run : pip install poetry
2324
2425 - name : Show Poetry version
2526 run : poetry --version
@@ -28,11 +29,11 @@ jobs:
2829 run : poetry install
2930
3031 - name : Run Tests
31- run : poetry run pytest --junit-xml=junit/test-results-${{ matrix.python-version }}.xml
32+ run : poetry run pytest --junit-xml=junit/test-results-${{ matrix.os }}-${{ matrix. python-version }}.xml
3233
3334 - name : Upload pytest test results
3435 if : ${{ !cancelled() }} # Upload results even if tests fail.
3536 uses : actions/upload-artifact@v3
3637 with :
37- name : pytest-results-${{ matrix.python-version }}
38- path : junit/test-results-${{ matrix.python-version }}.xml
38+ name : pytest-results-${{ matrix.os }}-${{ matrix. python-version }}
39+ path : junit/test-results-${{ matrix.os }}-${{ matrix. python-version }}.xml
0 commit comments