X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.github%2Fworkflows%2Frun-tests.yaml;h=2c9489e4d554542ffb5ced181488648d45a58fb9;hb=049739209856cde9455fd255c56a91c8e08a33ce;hp=3e290db390d39dcfe697126f7660e85d8d3425e2;hpb=e4508c6f74cc2cca194ac879c3e4084c4421f030;p=m_librarian.git diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 3e290db..2c9489e 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -6,9 +6,10 @@ jobs: run-tests: strategy: + fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] + python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] include: - os: ubuntu-latest os-name: Linux @@ -24,6 +25,8 @@ jobs: runs-on: ${{ matrix.os }} steps: + + # Setup Python/pip - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: @@ -33,12 +36,29 @@ jobs: with: path: ${{ matrix.pip-cache-path }} key: ${{ runner.os }}-pip + + # Setup tox - name: Install dependencies run: | python --version - python -m pip install --upgrade "pip<21.0" "setuptools<45" wheel + python -m pip install --upgrade pip setuptools wheel pip --version - python -m pip --version - python -m pip install --upgrade virtualenv tox tox-gh-actions - - name: Run tox targets for ${{ matrix.python-version }} - run: python -m tox + pip install --upgrade virtualenv tox + - name: Set TOXENV + run: | + import os, sys + pyver = '%d%d' % tuple(sys.version_info[:2]) + toxenv = 'py%s-sqlite' % pyver + if os.name == 'posix': + toxenv += ',py%s-flake8' % pyver + elif os.name == 'nt': + toxenv += '-w32' + with open(os.environ['GITHUB_ENV'], 'a') as f: + f.write('TOXENV=' + toxenv + '\n') + shell: python + + - name: Run tox + run: | + python -c "import os; print(os.environ['TOXENV'])" + tox --version + tox