Skip to content

Commit

Permalink
Issue #16/#23 use separate workflow for pytest-collect
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Jan 22, 2024
1 parent 57da9bb commit 6a0cdbf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,4 @@ jobs:
# run: python -m black --check --diff .
- name: ruff
run: ruff check .
- name: "pytest: check test collection"
run: |
python -m pip install .[dev]
pytest --collect-only

27 changes: 27 additions & 0 deletions .github/workflows/pytest-collect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Pytest-collect

on:
pull_request:
branches: [ main ]
paths:
- 'tests/**'

jobs:
pytest-collect:
name: "Pytest: check test collection"
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install .[dev]
- name: "pytest: check test collection"
run: pytest --collect-only

0 comments on commit 6a0cdbf

Please sign in to comment.