diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8825373..a103e24 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,12 @@ jobs: matrix: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] os: [ubuntu-latest, macos-latest, windows-latest] + exclude: # Python < v3.8 does not support Apple Silicon ARM64. + - python-version: "3.7" + os: macos-latest + include: # So run those legacy versions on Intel CPUs. + - python-version: "3.7" + os: macos-13 env: OS: ${{ matrix.os }} PYHTHON: ${{ matrix.python-version }} @@ -29,9 +35,10 @@ jobs: pip uninstall -y matplotlib pytest --cov=kneed --cov-report=xml:coverage2.xml tests/test_no_matplotlib.py - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: env_vars: OS,PYTHON + token: ${{ secrets.CODECOV_TOKEN }} # required fail_ci_if_error: true flags: unittests name: codecov-umbrella