-
-
Notifications
You must be signed in to change notification settings - Fork 27
35 lines (33 loc) · 996 Bytes
/
release.yml
File metadata and controls
35 lines (33 loc) · 996 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
26
27
28
29
30
31
32
33
34
35
name: Release to Pypi
on:
release:
types: [ published ]
jobs:
release:
if: ${{ github.event_name == 'release' && !github.event.release.prerelease }}
runs-on: ubuntu-latest
container: ghcr.io/opencyphal/toxic:tx22.4.3
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: setup nox
run: pip install nox
- name: version-check
# Fails the release if the release-tag doesn't match the Nunavut version at that tag.
run: |
python3 ./src/nunavut/_version.py -v --fail-on-mismatch --tag=${{ github.ref }}
- name: lint
run: nox -s lint
- name: test-nnvg
run: nox -s nnvg-3.11
- name: test-doctest
run: nox -s doctest-3.11 rstdoctest-3.11
- name: test-pytest
run: nox -s test-3.11
- name: package
run: nox -s package
- name: upload
run: |
pip3 install twine
twine upload -u __token__ -p ${{ secrets.PYPI_PASSWORD }} .nox/package/tmp/dist/*