You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflow will upload a Python Package using Twine when a release is created
2
+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
+
4
+
# This workflow uses actions that are not certified by GitHub.
5
+
# They are provided by a third-party and are governed by
6
+
# separate terms of service, privacy policy, and support
7
+
# documentation.
8
+
9
+
name: Upload Python Package
10
+
11
+
on:
12
+
push:
13
+
tags:
14
+
- '*'
15
+
branches:
16
+
- main
17
+
release:
18
+
types: [created]
19
+
20
+
jobs:
21
+
pypi:
22
+
name: Publish sdist to Pypi
23
+
runs-on: ubuntu-latest
24
+
steps:
25
+
- uses: actions/checkout@v4
26
+
- uses: astral-sh/setup-uv@v5
27
+
with:
28
+
python-version: '3.11'
29
+
- run: uv build --sdist
30
+
# Check that basic features work and we didn't miss to include crucial files
31
+
- name: import test (sdist)
32
+
run: uv run --isolated --no-project -p 3.11 --with dist/*.tar.gz spectrally/tests/prepublish.py
# This workflow will upload a Python Package using Twine when a release is created
2
+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
+
4
+
# This workflow uses actions that are not certified by GitHub.
5
+
# They are provided by a third-party and are governed by
6
+
# separate terms of service, privacy policy, and support
7
+
# documentation.
8
+
9
+
name: Upload Python Package wheels
10
+
11
+
on:
12
+
push:
13
+
tags:
14
+
- '*'
15
+
branches:
16
+
- main
17
+
release:
18
+
types: [created]
19
+
20
+
jobs:
21
+
pypi:
22
+
name: Publish wheel to Pypi
23
+
strategy:
24
+
fail-fast: false
25
+
matrix:
26
+
os: [ubuntu-latest, windows-latest, macos-latest]
27
+
python-version: ["3.10", "3.11", "3.12"]
28
+
runs-on: ${{ matrix.os }}
29
+
steps:
30
+
- uses: actions/checkout@v4
31
+
- uses: astral-sh/setup-uv@v5
32
+
with:
33
+
python-version: ${{ matrix.python-version }}
34
+
- run: uv build --wheel
35
+
# Check that basic features work and we didn't miss to include crucial files
0 commit comments