Skip to content

Commit

Permalink
Create python-publish.yml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kaofelix authored Oct 4, 2024
1 parent 0d83226 commit 202e1d0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install
- name: Install the project
run: uv sync --all-extras --dev
- name: Install tox-uv from PyPI
uses: install-pinned/tox-uv@70c77cde128299750a16aa2c9ea8764ab543ae84 # 1.13.0
- name: Run tests
run: tox
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29

0 comments on commit 202e1d0

Please sign in to comment.