X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=inline;f=.github%2Fworkflows%2Frun-tests.yaml;h=b0dfacf4013f12cd57606ce47263922511c2576b;hb=0fbc94b768cfd4e5ef5ffd3fcb570c9e61dfa139;hp=e312f7d4b8f668a7156c73800dc0e9c9fb1a4992;hpb=4bcaea43780624e1b852d7a6d05bb0d180dd3b94;p=m_librarian.git diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index e312f7d..b0dfacf 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -6,10 +6,9 @@ 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", "3.11"] include: - os: ubuntu-latest os-name: Linux @@ -25,19 +24,28 @@ jobs: runs-on: ${{ matrix.os }} steps: + + # Setup Python/pip - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: s-weigand/setup-conda@v1 + with: + python-version: ${{ matrix.python-version }} + if: ${{ runner.os == 'Linux' && matrix.python-version != '3.11' }} + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + if: ${{ runner.os != 'Linux' || matrix.python-version == '3.11' }} - name: Cache pip - uses: actions/cache@v2 + uses: actions/cache@v3 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 pip install --upgrade virtualenv tox - name: Set TOXENV @@ -52,7 +60,9 @@ jobs: 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