Skip to content

Commit

Permalink
Let uv handle the set up of python in the tests GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanpainchaud committed Jan 31, 2025
1 parent e882cd8 commit dcc5d7e
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install uv
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
pyproject-file: "pyproject.toml"

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install the project
Expand All @@ -50,12 +46,7 @@ jobs:
with:
pyproject-file: "pyproject.toml"

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"

- name: Install the project
- name: Install uv-managed python version and the project
run: uv sync --extra cpu

- name: Run tests and collect coverage
Expand Down

0 comments on commit dcc5d7e

Please sign in to comment.