-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.38 KB
/
python-publish.yml
File metadata and controls
46 lines (42 loc) · 1.38 KB
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
36
37
38
39
40
41
42
43
44
45
46
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package
on:
release:
types: [created]
jobs:
release-pypi:
name: "Publish release to PyPI"
runs-on: ubuntu-latest
environment:
name: Release
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b
- name: Install Python 3.13
run: uv python install 3.13
- name: Build
run: uv build
- name: Smoke test
run: |
uv run --no-cache --isolated --no-project --with dist/*.whl tests/smoke_test.py
uv run --no-cache --isolated --no-project --with dist/*.tar.gz tests/smoke_test.py
- name: Publish
run: uv publish
deploy-conda:
needs: [release-pypi]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: publish-to-conda
uses: hellmrf/conda-publish-action@v1.4
with:
subdir: 'conda'
anacondatoken: ${{ secrets.ANACONDA_TOKEN }}
additional_channels: "-c helitonmrf"
platforms: 'win osx linux'