Skip to content

add a publish github workflow #8

add a publish github workflow

add a publish github workflow #8

Workflow file for this run

name: Build
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-22.04
permissions:
id-token: "write"
contents: "read"
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- name: Install dependencies
run: poetry install
shell: nix develop --command bash -e {0}
- name: Run tests
run: poetry run pytest
shell: nix develop --command bash -e {0}
- name: Build dist
run: poetry build
shell: nix develop --command bash -e {0}
- name: Save dist
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/