Merge pull request #287 from Mic92/dependabot/github_actions/cachix/i… #718
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: "Test" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- staging | |
- trying | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v29 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
- name: build | |
run: nix build | |
- name: Run tests | |
run: nix develop -c pytest -s . | |
env: | |
# used by nix-update tests | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |