Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
key: >-
${{ inputs.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
steps.python.outputs.python-version }}-${{
hashFiles('setup.py', 'requirements_test.txt') }}
hashFiles('setup.py', 'pyproject.toml') }}
restore-keys: |
${{ inputs.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-
- name: Create Python virtual environment
Expand All @@ -64,8 +64,7 @@ jobs:
python -m venv venv
. venv/bin/activate
pip install -U pip setuptools pre-commit
pip install -r requirements_test.txt
pip install -e .
pip install -e '.[testing]'

pre-commit:
name: Run pre-commit
Expand All @@ -88,7 +87,7 @@ jobs:
key: >-
${{ inputs.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
steps.python.outputs.python-version }}-${{
hashFiles('setup.py', 'requirements_test.txt') }}
hashFiles('setup.py', 'pyproject.toml') }}
- name: Lint and static analysis
uses: pre-commit/action@v3.0.0

Expand Down Expand Up @@ -117,7 +116,7 @@ jobs:
key: >-
${{ inputs.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
steps.python.outputs.python-version }}-${{
hashFiles('setup.py', 'requirements_test.txt') }}
hashFiles('setup.py', 'pyproject.toml') }}
- name: Register Python problem matcher
run: |
echo "::add-matcher::.github/workflows/matchers/python.json"
Expand All @@ -136,6 +135,7 @@ jobs:
--timeout=20 \
--durations=10 \
--cov ${{ inputs.CODE_FOLDER }} \
--cov-config pyproject.toml \
-o console_output_style=count \
-p no:sugar \
tests
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
key: >-
${{ inputs.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
steps.python.outputs.python-version }}-${{
hashFiles('setup.py', 'requirements_test.txt') }}
hashFiles('setup.py', 'pyproject.toml') }}
- name: Download all coverage artifacts
uses: actions/download-artifact@v3
- name: Combine coverage results
Expand Down