added pytest_safe.yml

This commit is contained in:
2025-12-31 16:55:05 -05:00
parent ec5975d663
commit 9aea31e841
2 changed files with 20 additions and 1 deletions

View File

@@ -16,4 +16,4 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Run tests - name: Run tests
run: nix develop .#devShells.x86_64-linux.default -c unshare --map-root-user --user --net -- pytest tests run: nix develop .#devShells.x86_64-linux.default -c pytest tests

19
.github/workflows/pytest_safe.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: pytest_safe
on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
jobs:
pytest:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Run tests
run: unshare --map-root-user --user --net -- pytest tests