Skip to content

Update default.nix #222

Update default.nix

Update default.nix #222

# 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')\""