-
-
Notifications
You must be signed in to change notification settings - Fork 180
25 lines (23 loc) · 794 Bytes
/
release.yml
File metadata and controls
25 lines (23 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Release
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Release
uses: patrick-kidger/action_update_python_project@v8
with:
python-version: "3.11"
# Uninstall and reinstall pytest to work around the fact that it doesn't get put into `bin` otherwise.
test-script: |
cp -r ${{ github.workspace }}/test ./test
cp ${{ github.workspace }}/pyproject.toml ./pyproject.toml
uv pip uninstall pytest
uv sync --no-install-project --inexact
uv run --no-sync python -m test
pypi-token: ${{ secrets.pypi_token }}
github-user: patrick-kidger
github-token: ${{ github.token }}