This commit is contained in:
@@ -9,20 +9,13 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
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: Install and test
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
cd app
|
||||||
pip install -e ".[dev]"
|
pip install -e ".[dev]"
|
||||||
- name: Run tests
|
pytest tests/
|
||||||
run: |
|
|
||||||
python -m pytest tests/ -v --tb=short
|
|
||||||
- name: Check linting
|
|
||||||
run: |
|
|
||||||
pip install ruff
|
|
||||||
ruff check src/
|
|
||||||
|
|||||||
Reference in New Issue
Block a user