chore(deps): lock file maintenance #413
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
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- beta | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v14 | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- uses: iterative/setup-dvc@v1 | |
- run: dvc pull --force | |
- run: nix develop -c poetry run pytest | |
- run: nix flake check --show-trace | |
release: | |
runs-on: ubuntu-latest | |
needs: test | |
if: ${{ github.repository_owner == 'recap-utr' && github.event_name == 'push' }} | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: arm64 | |
- uses: DeterminateSystems/nix-installer-action@v14 | |
with: | |
extra-conf: | | |
extra-platforms = aarch64-linux | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- run: nix profile install .#releaseEnv | |
- uses: cihelper/action-semanticrelease-poetry@v1 | |
id: semanticrelease | |
- uses: pypa/gh-action-pypi-publish@release/v1 | |
if: ${{ steps.semanticrelease.outputs.released == 'true' }} | |
- run: nix run .#dockerManifest --impure | |
if: ${{ steps.semanticrelease.outputs.released == 'true' }} | |
env: | |
VERSION: ${{ steps.semanticrelease.outputs.version }} | |
GH_TOKEN: ${{ github.token }} |