Skip to content

Commit c9a9c5d

Browse files
author
valhassan
committed
Update GitHub Actions workflow to use updated action versions, switch to UV for dependency management, and streamline testing and linting processes with enhanced Python version support.
1 parent c46a4b6 commit c9a9c5d

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/github-actions-ci.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@ jobs:
77
runs-on: ubuntu-22.04
88

99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111

12-
- uses: actions/setup-python@v5
12+
- uses: astral-sh/setup-uv@v7
1313
with:
14-
python-version: "3.10"
15-
cache: "pip"
14+
python-version: "3.12"
15+
enable-cache: true
16+
activate-environment: true
1617

1718
- name: Install dependencies
18-
run: |
19-
python -m pip install --upgrade pip
20-
pip install -r requirements.txt
19+
run: uv sync --frozen --extra dev --extra cpu
2120

22-
- name: Install pytest
23-
run: pip install pytest
21+
- name: Lint
22+
run: uv run ruff check . && uv run ruff format --check .
2423

2524
- name: Run tests
26-
run: pytest tests/
25+
run: uv run --frozen pytest tests/

0 commit comments

Comments
 (0)