Commit 9ffc59e5 authored by Jens Vagelpohl's avatar Jens Vagelpohl

- fix test runs and deprecation warnings

parent 04fe8278
...@@ -17,8 +17,8 @@ jobs: ...@@ -17,8 +17,8 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: os:
- ubuntu - ["ubuntu", "ubuntu-20.04"]
- windows - ["windows", "windows-latest"]
config: config:
# [Python version, tox env] # [Python version, tox env]
- ["3.9", "lint"] - ["3.9", "lint"]
...@@ -36,22 +36,22 @@ jobs: ...@@ -36,22 +36,22 @@ jobs:
- ["3.9", "coverage"] - ["3.9", "coverage"]
- ["3.8", "py38-pure"] - ["3.8", "py38-pure"]
exclude: exclude:
- { os: windows, config: ["3.9", "lint"] } - { os: ["windows", "windows-latest"], config: ["3.9", "lint"] }
- { os: windows, config: ["3.9", "docs"] } - { os: ["windows", "windows-latest"], config: ["3.9", "docs"] }
- { os: windows, config: ["3.9", "coverage"] } - { os: ["windows", "windows-latest"], config: ["3.9", "coverage"] }
- { os: windows, config: ["pypy-2.7", "pypy"] } - { os: ["windows", "windows-latest"], config: ["pypy-2.7", "pypy"] }
runs-on: ${{ matrix.os }}-latest runs-on: ${{ matrix.os[1] }}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
name: ${{ matrix.os }}-${{ matrix.config[1] }} name: ${{ matrix.os[0] }}-${{ matrix.config[1] }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.config[0] }} python-version: ${{ matrix.config[0] }}
- name: Pip cache - name: Pip cache
uses: actions/cache@v2 uses: actions/cache@v3
with: with:
path: ~/.cache/pip path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }} key: ${{ runner.os }}-pip-${{ matrix.config[0] }}-${{ hashFiles('setup.*', 'tox.ini') }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment