Skip to content

Commit

Permalink
Try to fix CI tests for Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
miso-belica committed Oct 14, 2021
1 parent 31935c2 commit 80553e1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
timeout-minutes: 15
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10"]
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2

Expand All @@ -19,11 +19,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: "Install dependencies (compatible)"
run: |
python -m pip install --upgrade pip
# pytest 4.6.X works best for older Python versions
pip install -U lxml "pytest==4.6.9" codecov 'coverage==4.5.4' pytest-cov
if: ${{ matrix.python-version == '2.7' }}

- name: "Install dependencies (up to date)"
run: |
python -m pip install --upgrade pip
pip install -U lxml pytest codecov coverage pytest-cov
if: ${{ matrix.python-version != '2.7' }}

- run: py.test tests
env:
Expand Down

0 comments on commit 80553e1

Please sign in to comment.