Skip to content

Commit

Permalink
updates CI
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Oct 11, 2024
1 parent 2214ed0 commit 691d04e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
pip install -r {work_dir}/requirements.txt
pip install '{env:DJANGO}'
pytest
- name: Cache venv
if: steps.cache-venv-restore.outputs.cache-hit != 'true'
id: cache-venv-save
Expand All @@ -97,17 +97,6 @@ jobs:
.venv/
key: ${{ matrix.python-version }}-${{matrix.django-version}}-${{ hashFiles('pyproject.toml') }}-venv

- name: lint
if: needs.changes.outputs.lint
run: |
pdm run isort src/ --check-only
pdm run flake8 src/
- name: Test
if: needs.changes.outputs.run_tests
run: |
pdm run pytest tests --create-db --junit-xml junit-${{ matrix.python-version }}-${{matrix.django-version}}.xml
- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 691d04e

Please sign in to comment.