Apply ruff and add to CI (#40)

This commit is contained in:
Bradley Axen
2024-09-03 21:47:47 -07:00
committed by GitHub
parent 466ce2375c
commit bb8966bb02
3 changed files with 30 additions and 16 deletions
+13 -8
View File
@@ -9,14 +9,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Install UV
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install UV
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Source Cargo Environment
run: source $HOME/.cargo/env
- name: Source Cargo Environment
run: source $HOME/.cargo/env
- name: Run tests
run: |
uv run pytest tests -m 'not integration'
- name: Ruff
run: |
uvx ruff check
uvx ruff format --check
- name: Run tests
run: |
uv run pytest tests -m 'not integration'