]> 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 c1d6c40c083873ce114b5e952c15eef22f73b759..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
@@ -22,19 +21,23 @@ jobs:
     runs-on: ${{ matrix.os }}
 
     steps:
+
+      # 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
+
+      # 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
@@ -50,7 +53,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