Skip to content

Commit bc1e404

Browse files
Test Without UV Python Standalone
1 parent 00da289 commit bc1e404

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@ jobs:
1212
- name: Checkout Code Repository
1313
uses: actions/checkout@v4
1414

15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.13"
1519
- name: Install uv
16-
uses: astral-sh/setup-uv@v6
20+
uses: astral-sh/setup-uv@v5
1721
with:
18-
version: "latest"
1922
python-version: "3.13"
20-
activate-environment: true
21-
env:
22-
UV_VENV_SEED: 1
23-
24-
- name: Install Dependencies
25-
run: uv sync --extra dev --extra test
2623

24+
- name: Install the package and test dependencies
25+
run: |
26+
uv venv
27+
uv pip install --upgrade pip
28+
uv pip install -e '.[dev,test]'
2729
2830
# Consider using pre-commit.ci for open source project
2931
- name: Run pre-commit
@@ -37,21 +39,20 @@ jobs:
3739
fail-fast: false
3840
runs-on: ${{ matrix.os }}
3941
steps:
40-
4142
- name: Checkout
4243
uses: actions/checkout@v4
43-
44+
- name: Set up Python
45+
uses: actions/setup-python@v5
46+
with:
47+
python-version: ${{ matrix.python-version }}
4448
- name: Install uv
45-
uses: astral-sh/setup-uv@v6
49+
uses: astral-sh/setup-uv@v5
4650
with:
47-
version: "latest"
4851
python-version: ${{ matrix.python-version }}
49-
activate-environment: true
50-
env:
51-
UV_VENV_SEED: 1
52-
53-
- name: Install Dependencies
54-
run: uv sync --extra dev --extra test
55-
52+
- name: Install the package and test dependencies
53+
run: |
54+
uv venv
55+
uv pip install --upgrade pip
56+
uv pip install -e '.[test]'
5657
- name: Run tests
5758
run: uv run --no-project pytest -nauto

0 commit comments

Comments
 (0)