require reviews from either vro or EE teams, not both (#6) #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test & Lint" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allow manual triggering | |
workflow_dispatch: | |
jobs: | |
test-python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout source code" | |
uses: actions/checkout@v4 | |
- name: "Install Python" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
- name: "Install dependencies" | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r src/requirements.txt | |
pip install -r src/dev-requirements.txt | |
- name: "Run ruff format" | |
run: | | |
ruff format src/ tests/ | |
- name: "Run ruff check" | |
run: | | |
ruff check src/ tests/ | |
- name: "Run tests" | |
run: | | |
pytest --cov=src --cov-report=xml |