Skip to content

Commit

Permalink
Clean up test runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdaemon committed Mar 30, 2024
1 parent 3b76c47 commit e77243b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,36 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.1.0
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2.1.4
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-ver }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-ver }}-pip-
python-version: "${{matrix.python-version}}"
cache: "pip"
cache-dependency-path: |
**/*requirements*.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip install -Ur requirements.txt
pip install --upgrade pip setuptools
pip install -Ur requirements-dev.txt
- name: Test with pytest
run: |
pytest
run: pytest -vv
env:
PYTHONDEVMODE: 1
PYTHONPATH: .
- uses: codecov/codecov-action@v3.1.1

- uses: codecov/codecov-action@v3
with:
name: build-${{ matrix.python-ver }}
name: build-${{ matrix.python-version }}
fail_ci_if_error: true
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-r requirements.txt

0 comments on commit e77243b

Please sign in to comment.