This commit is contained in:
@@ -9,21 +9,16 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ./app
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
- name: Install dependencies
|
- name: Run tests and linting
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
cd app
|
||||||
pip install -e ".[dev]"
|
pip install -e ".[dev]"
|
||||||
- name: Run tests
|
python -m pytest tests/ -v --cov=src --cov-report=term-missing
|
||||||
run: python -m pytest tests/ -v --cov=src --cov-report=term-missing
|
|
||||||
- name: Check linting
|
|
||||||
run: |
|
|
||||||
pip install ruff
|
pip install ruff
|
||||||
ruff check .
|
ruff check .
|
||||||
|
|||||||
Reference in New Issue
Block a user