Skip to content

Commit f2181fa

Browse files
committed
Use uv in test workflow
1 parent 8b57141 commit f2181fa

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

.github/workflows/pytest.yml

+10-25
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,19 @@ jobs:
1313
build:
1414
runs-on: "ubuntu-latest"
1515
steps:
16-
- uses: actions/checkout@v2
17-
with:
18-
submodules: recursive
19-
- name: Install Python 3
16+
- uses: actions/checkout@v3
17+
- name: Set up Python
2018
uses: actions/setup-python@v4
2119
with:
2220
python-version: '3.10'
2321
- name: Install dependencies
2422
run: |
25-
python -m pip install --upgrade pip
26-
pip install -e.[dev,all]
27-
- name: Run tests with pytest
28-
run: coverage run -m pytest --html=test-report.html
29-
- name: Run coverage
23+
python -m pip install uv
24+
uv venv
25+
make install-dev
26+
- name: Activate virtualenv
3027
run: |
31-
coverage report
32-
coverage html
33-
- name: Archive code coverage results
34-
uses: actions/upload-artifact@v2
35-
if: ${{ always() }}
36-
with:
37-
name: code-coverage-report
38-
path: coverage_report
39-
- name: Archive test report
40-
uses: actions/upload-artifact@v2
41-
if: ${{ always() }}
42-
with:
43-
name: test-report
44-
path: |
45-
test-report.html
46-
assets
28+
. .venv/bin/activate
29+
echo PATH=$PATH >> $GITHUB_ENV
30+
- name: Run tests with pytest
31+
run: make test

0 commit comments

Comments
 (0)