]> git.phdru.name Git - ppu.git/blobdiff - .github/workflows/run-tests.yaml
CI(GHActions): fail fast, use `setup-python@v4`, `cache@v3`
[ppu.git] / .github / workflows / run-tests.yaml
index 8387a9dd5c5ed5959364708216e10c569f9ca470..88529f7831164e333003bd6f030128b83c34b114 100644 (file)
@@ -6,10 +6,9 @@ jobs:
   run-tests:
 
     strategy:
-      fail-fast: false
       matrix:
         os: [ubuntu-latest, windows-latest]
-        python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 'pypy-2.7']
+        python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "pypy-2.7"]
         include:
         - os: ubuntu-latest
           os-name: Linux
@@ -25,11 +24,11 @@ jobs:
 
       # Setup Python/pip
       - uses: actions/checkout@v2
-      - uses: actions/setup-python@v2
+      - uses: actions/setup-python@v4
         with:
           python-version: ${{ matrix.python-version }}
       - name: Cache pip
-        uses: actions/cache@v2
+        uses: actions/cache@v3
         with:
           path: ${{ matrix.pip-cache-path }}
           key: ${{ runner.os }}-pip
@@ -38,7 +37,7 @@ jobs:
       - 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
@@ -58,4 +57,5 @@ jobs:
       - name: Run tox
         run: |
           python -c "import os; print(os.environ['TOXENV'])"
+          tox --version
           tox