Skip to content

Commit

Permalink
CI: Run "service" tests only on Python 3.11 and higher
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed May 9, 2024
1 parent 3e68eda commit ee9b59f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.12"]
python-version: ["3.8", "3.11", "3.12"]

env:
OS: ${{ matrix.os }}
Expand Down Expand Up @@ -53,7 +53,14 @@ jobs:
pip install "setuptools>=64" --upgrade
# Install package in editable mode.
pip install --use-pep517 --prefer-binary --editable=.[service,develop,docs,test]
pip install --use-pep517 --prefer-binary --editable=.[develop,test]
- name: Setup "service" extra
if: matrix.python-version != '3.8' && matrix.python-version != '3.9' && matrix.python-version != '3.10'
run: |
# Install package in editable mode.
pip install --use-pep517 --prefer-binary --editable=.[service]
- name: Run linter and software tests
run: |
Expand Down
4 changes: 4 additions & 0 deletions tests/test_service.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import uuid

import pytest

pytest.importorskip("responder")


def test_index(api):
r = api.requests.get("/")
Expand Down

0 comments on commit ee9b59f

Please sign in to comment.