release from branches instead of tags #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |