Skip to content

Commit 4592938

Browse files
Update release workflows
1 parent ee5a0d0 commit 4592938

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/release-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Build
3131
run: |
3232
uv pip install build
33-
uv python -m build
33+
uv run python -m build
3434
3535
- name: Publish
3636
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/release.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,25 @@ jobs:
1010
codecov:
1111
runs-on: ubuntu-latest
1212

13-
container:
14-
image: analysiscenter1/ds-py3:3.8
15-
options: --entrypoint ""
16-
1713
steps:
1814
- uses: actions/checkout@v3
1915

16+
- name: Set up Python 3.9
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: 3.9
20+
2021
- name: Generate coverage report
2122
run: |
22-
pip3 install -U pytest-cov
23-
pytest -m "not slow" --cov=./ --cov-report=xml
23+
pip install uv
24+
uv sync --all-extras
25+
uv pip install -U pytest-cov
26+
uv run pytest -m "not slow" --cov=./ --cov-report=xml
2427
2528
- name: Upload coverage to Codecov
2629
run: |
27-
pip3 install -U codecov
28-
codecov -t ${{ secrets.CODECOV_TOKEN }}
30+
uv pip install -U codecov
31+
uv run codecov -t ${{ secrets.CODECOV_TOKEN }}
2932
3033
3134
pypi:
@@ -50,7 +53,7 @@ jobs:
5053
- name: Build
5154
run: |
5255
uv pip install build
53-
uv python -m build
56+
uv run python -m build
5457
5558
- name: Publish
5659
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)