Skip to content

Commit

Permalink
TST: simplify CI with setup-uv@v5
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jan 2, 2025
1 parent 44879d8 commit 418f919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: 3.x
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
- run: uv venv
with:
python-version: '3.13'
- run: uv pip compile pyproject.toml | uv pip install -r -
- run: shopt -s globstar
# - run: pip install safety && safety check
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true

- name: Set UV_RESOLUTION
if: ${{ matrix.oldestdeps }}
Expand Down Expand Up @@ -125,7 +124,6 @@ jobs:
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
with:
python-version: ${{ matrix.python-version }}
enable-cache: true

- name: Run mypy
run: uv run --no-editable --group typecheck mypy src/cmasher
Expand All @@ -143,7 +141,6 @@ jobs:
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
with:
python-version: '3.13'
enable-cache: true

- name: Build
run: |
Expand All @@ -162,8 +159,6 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
with:
enable-cache: true
- run: uv build
- run: uvx twine check dist/*
- run: uv run scripts/check_dist.py
Expand Down

0 comments on commit 418f919

Please sign in to comment.