File tree Expand file tree Collapse file tree 2 files changed +31
-30
lines changed
Expand file tree Collapse file tree 2 files changed +31
-30
lines changed Original file line number Diff line number Diff line change 11name : Publish to PyPI
2+
23on :
34 push :
45 tags :
56 - ' v*'
7+
68jobs :
7- build-n-publish :
8- name : Build and publish to PyPI
9- runs-on : ubuntu-latest
10- permissions :
11- # IMPORTANT: this permission is mandatory for trusted publishing
12- id-token : write
13- steps :
14- - uses : actions/checkout@v6
15- - name : Set up uv
16- uses : astral-sh/setup-uv@v7
17- with :
18- python-version : " 3.x"
19- - name : Build a binary wheel and a source tarball
20- run : uv build
21- - name : Publish distribution 📦 to PyPI
22- run : uv publish
9+ build-n-publish :
10+ name : Build and publish to PyPI
11+ runs-on : ubuntu-latest
12+ permissions :
13+ # IMPORTANT: this permission is mandatory for trusted publishing
14+ id-token : write
15+ steps :
16+ - uses : actions/checkout@v6
17+ - name : Set up uv
18+ uses : astral-sh/setup-uv@v7
19+ with :
20+ python-version : " 3.x"
21+ - name : Build a binary wheel and a source tarball
22+ run : uv build
23+ - name : Publish distribution 📦 to PyPI
24+ run : uv publish
Original file line number Diff line number Diff line change @@ -31,30 +31,29 @@ jobs:
3131 run : uv run mypy pythonosc examples
3232 - name : Test with pytest
3333 run : uv run pytest
34+
3435 lint :
3536 runs-on : ubuntu-latest
3637 steps :
3738 - uses : actions/checkout@v6
3839 - name : Set up uv
3940 uses : astral-sh/setup-uv@v7
40-
41- - name : Run ruff format
42- run : uv run ruff format --check .
41+ - name : Run ruff format
42+ run : uv run ruff format --check .
4343
4444 check-types-published :
4545 runs-on : ubuntu-latest
4646 steps :
4747 - uses : actions/checkout@v6
4848 - name : Set up uv
4949 uses : astral-sh/setup-uv@v7
50-
51- with :
52- python-version : ' 3.12'
53- - name : Build package
54- run : uv build
55- - name : Verify package installation and types
56- run : |
57- temp=$(mktemp -d)
58- uv run --with mypy --with ./dist/*.whl --no-project -- python -c "import pythonosc"
59- echo 'import pythonosc' > $temp/demo.py
60- uv run --with mypy --with ./dist/*.whl --no-project -- mypy $temp/demo.py
50+ with :
51+ python-version : ' 3.12'
52+ - name : Build package
53+ run : uv build
54+ - name : Verify package installation and types
55+ run : |
56+ temp=$(mktemp -d)
57+ uv run --with mypy --with ./dist/*.whl --no-project -- python -c "import pythonosc"
58+ echo 'import pythonosc' > $temp/demo.py
59+ uv run --with mypy --with ./dist/*.whl --no-project -- mypy $temp/demo.py
You can’t perform that action at this time.
0 commit comments