Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,18 @@ jobs:
- name: Create environment
id: create_env
run: |
pip install uv
uv venv --python 3.11 .venv_lint
source .venv_lint/bin/activate

- name: Install Ruff
run: uv pip install ruff
run: |
source .venv_lint/bin/activate
uv pip install ruff

- name: Run Ruff
run: ruff check src/ --output-format=github
run: |
source .venv_lint/bin/activate
ruff check src/ --output-format=github

- name: Remove environment
if: always()
Expand Down Expand Up @@ -68,22 +71,25 @@ jobs:
- name: Create environment
id: create_env
run: |
pip install uv
uv venv --python 3.11 .venv_pytest
source .venv_pytest/bin/activate

- name: Install dependencies
run: |
source .venv_pytest/bin/activate
uv pip install --upgrade pip
uv pip install pytest
uv pip install -r requirements.txt
uv pip install -e .

- name: List build environment
run: uv pip list
run: |
source .venv_pytest/bin/activate
uv pip list

- name: Test with pytest
run: |
source .venv_pytest/bin/activate
echo $(which python)
cd tests
pytest -s --high-tol
Expand Down