Skip to content

Commit 981cecc

Browse files
committed
fix: github workflows
1 parent 8e34602 commit 981cecc

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/pytest.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
- "3.8"
1212
- "3.9"
1313
- "3.10"
14-
- "3.11"
15-
- "3.12"
1614

1715
steps:
1816
- uses: actions/checkout@v4
@@ -23,7 +21,7 @@ jobs:
2321
python-version: ${{ matrix.python-version }}
2422

2523
- name: Install the project
26-
run: uv sync --locked --all-extras --dev
24+
run: uv sync --locked --all-extras --dev
2725

2826
- name: Run unit tests
2927
run: uv run pytest -m "not slow" --cov=compressai -s tests/

.github/workflows/static-analysis.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,24 @@ on: [push, pull_request]
44

55
jobs:
66
static_analysis:
7-
runs-on: ${{ matrix.os }}
7+
runs-on: "ubuntu-latest"
88
strategy:
99
matrix:
1010
python-version:
1111
- "3.8"
1212
- "3.10"
1313
- "3.12"
1414

15-
include:
16-
- os: "ubuntu-latest"
1715
steps:
18-
- uses: astral-sh/ruff-action@v3
16+
- uses: actions/checkout@v4
17+
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install the project
24+
run: uv sync --only-group=dev
25+
26+
- name: Run static analysis
1927
run: make static-analysis

0 commit comments

Comments
 (0)