Skip to content

Commit

Permalink
Merge pull request #23 from Open-EO/issue16-pytest-collect-only
Browse files Browse the repository at this point in the history
Add a lint run to check pytest collection works
  • Loading branch information
soxofaan authored Jan 22, 2024
2 parents b1e16a2 + b57c407 commit 0e193c9
Showing 1 changed file with 27 additions and 0 deletions.
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:
push:
branches: [ main ]
pull_request:
branches: [ main ]

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 0e193c9

Please sign in to comment.