Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
python-version: "3.11"

- name: Lint
run: hatch run lint:fmt
uses: Fusion-Power-Plant-Framework/fppf-actions/hatch-lint@main

pytest:
runs-on: ubuntu-latest
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish

on:
release:
types: [published]

permissions:
contents: read

jobs:
pypi:
runs-on: ubuntu-latest

environment: release
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup python and Hatch
uses: Fusion-Power-Plant-Framework/fppf-actions/setup-hatch@main
- name: Build package
run: hatch build
- name: Run all tests with coverage
run: hatch run test:tests-cov
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1