Add steps to check out default.nix files #218
This file contains hidden or 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
# Integration tests for installing Python packages | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
name: test-rix-python | |
permissions: | |
contents: read | |
jobs: | |
build-py-env: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create this folder to silence warning | |
run: mkdir -p ~/.nix-defexpr/channels | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: rstats-on-nix | |
# If you chose signing key for write access | |
# signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
# If you chose API tokens for write access OR if you have a private cache | |
authToken: '${{ secrets.CACHIX_AUTH }}' | |
- name: Build default.nix | |
run: nix-build --quiet tests/testthat/_snaps/rix-python/python_default.nix | |
- name: Hello from Python | |
run: nix-shell --quiet tests/testthat/_snaps/rix-python/python_default.nix --run "python -c \"print('hello from Python')\"" |