Skip to content

Commit

Permalink
Fix the CI (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Sep 16, 2024
1 parent 17a914f commit 10f6e58
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ jobs:
with:
python-version: ${{ matrix.py }}
allow-prereleases: true
- name: setup uv for tox
uses: yezz123/setup-uv@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: install self with tox-uv
run: uv pip install tox-uv tox-gh@. --system
run: uv pip install tox-uv tox-gh@. --system --python ${{ matrix.py }}
- name: Setup test suite
run: tox run -vv --skip-missing-interpreters false --notest
- name: Run test suite
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: setup uv for tox
uses: yezz123/setup-uv@v4
- name: Install build
run: uv pip install build[uv] --system
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build package
run: pyproject-build --installer uv --sdist --wheel . --outdir dist
run: uv build --sdist --wheel . --out-dir dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.10.1
with:
attestations: true

0 comments on commit 10f6e58

Please sign in to comment.