1- name : tox
1+ name : nox
22
33on :
44 pull_request :
@@ -12,26 +12,24 @@ jobs:
1212 fail-fast : false
1313 matrix :
1414 platform : [ubuntu-latest, macos-latest, windows-latest]
15- python-version : [3.7, 3.8, 3.9]
15+ python-version : [" 3.7", " 3.8", " 3.9", "3.10" ]
1616
1717 steps :
1818 - uses : actions/checkout@v1
1919 - name : Set up Python ${{ matrix.python-version }}
2020 uses : actions/setup-python@v2
2121 with :
2222 python-version : ${{ matrix.python-version }}
23- - name : Set Python version for tox
24- run : echo "PY_VERSION=$(echo py ${version//./ })" >> $GITHUB_ENV
23+ - name : Set Python version for nox
24+ run : echo "PY_VERSION=$(echo ${version})" >> $GITHUB_ENV
2525 shell : bash
2626 env :
2727 version : ${{ matrix.python-version }}
2828 - name : Register Python problem matcher
2929 run : echo "::add-matcher::.github/workflows/matchers/pytest.json"
3030 - name : Install dependencies
31- run : pip install tox pytest-github-actions-annotate-failures
32- - name : Test with tox using minimal dependencies
33- run : tox -e ${{ env.PY_VERSION }}-mindeps
34- - name : Clean
35- run : tox -e clean
36- - name : Test with tox with all dependencies
37- run : tox -e ${{ env.PY_VERSION }}-alldeps
31+ run : pip install nox pytest-github-actions-annotate-failures
32+ - name : Test with nox using minimal dependencies
33+ run : nox -e "pytest-${{ env.PY_VERSION }}(all_deps=False)"
34+ - name : Test with nox with all dependencies
35+ run : nox -e "pytest-${{ env.PY_VERSION }}(all_deps=True)"
0 commit comments