Skip to content

Commit

Permalink
fix: add uv to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
codito committed Oct 6, 2024
1 parent 5108906 commit 3f284d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,27 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: 3.12
# Install a specific version of uv.
version: "0.4.18"
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install the project
run: uv sync --all-extras --dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .\[test\]
pip install codecov
pip freeze
uv pip install codecov
uv pip freeze
- name: Lint with ruff
run: |
ruff check
uv run ruff check
- name: Test with pytest
run: |
pytest
uv run pytest
- name: Upload coverage results
run: |
codecov
uv run codecov
1 change: 1 addition & 0 deletions .python_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12

0 comments on commit 3f284d2

Please sign in to comment.