Browse Source

Fix tavern for Python 3.6 and run tests on Python 3.10 (Linux-only)

pull/1966/head
Safihre 4 years ago
parent
commit
c762dda1b1
  1. 9
      .github/workflows/integration_testing.yml
  2. 3
      tests/requirements.txt

9
.github/workflows/integration_testing.yml

@ -9,15 +9,16 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: [3.6, 3.7, 3.8, 3.9] python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-20.04] os: [ubuntu-20.04]
include: include:
# TODO: Update to 3.10 when all packages are available, currently lxml is missing
- name: macOS - name: macOS
os: macos-latest os: macos-latest
python-version: 3.9 python-version: "3.9"
- name: Windows - name: Windows
os: windows-latest os: windows-latest
python-version: 3.9 python-version: "3.9"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -31,7 +32,7 @@ jobs:
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |
python --version python --version
pip install --upgrade pip pip install --upgrade pip wheel
pip install --upgrade -r requirements.txt pip install --upgrade -r requirements.txt
pip install --upgrade -r tests/requirements.txt pip install --upgrade -r tests/requirements.txt
- name: Test SABnzbd - name: Test SABnzbd

3
tests/requirements.txt

@ -7,6 +7,7 @@ pytest-httpbin
pytest-httpserver pytest-httpserver
flaky flaky
xmltodict xmltodict
tavern tavern<1.16.2; python_version == '3.6'
tavern; python_version > '3.6'
tavalidate tavalidate
lxml>=4.5.0 # needed by tavalidate lxml>=4.5.0 # needed by tavalidate

Loading…
Cancel
Save