mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-20 22:29:09 -04:00
added pytest_safe.yml
This commit is contained in:
2
.github/workflows/pytest.yml
vendored
2
.github/workflows/pytest.yml
vendored
@@ -16,4 +16,4 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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
19
.github/workflows/pytest_safe.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user