Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Feb 3, 2025
1 parent c247bcc commit 0a11be3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
with:
version: 0.5.24
enable-cache: true
cache-dependency-glob: "uv.lock"
cache-dependency-glob: "test/uv.lock"

- name: "Set up Python"
uses: actions/setup-python@v5
Expand Down Expand Up @@ -75,16 +75,16 @@ jobs:
# - deb/rpm (on their own workflows)
uv run pytest
# these need root
uv run sudo -E pytest ./backends
uv run sudo -E pytest ./install/no_crowdsec
sudo -E $(which uv) run pytest ./tests/backends
sudo -E $(which uv) run pytest ./tests/install/no_crowdsec
# these need a running crowdsec
docker run -d --name crowdsec -e CI_TESTING=true -e DISABLE_ONLINE_API=true -ti crowdsecurity/crowdsec
install -m 0755 /dev/stdin /usr/local/bin/cscli <<'EOT'
#!/bin/sh
docker exec crowdsec cscli "$@"
EOT
sleep 5
uv run sudo -E pytest ./install/with_crowdsec
sudo -E $(which uv) run pytest ./tests/install/with_crowdsec
- name: Lint
working-directory: ./test
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests_deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
version: 0.5.24
enable-cache: true
cache-dependency-glob: "uv.lock"
cache-dependency-glob: "test/uv.lock"

- name: "Set up Python"
uses: actions/setup-python@v5
Expand All @@ -57,5 +57,5 @@ jobs:
PYTEST_ADDOPTS: --durations=0 -vv --color=yes
working-directory: ./test
run: |
uv run pytest ./pkg/test_build_deb.py
uv run sudo -E pytest -m deb ./install/no_crowdsec
uv run pytest ./tests/pkg/test_build_deb.py
sudo -E $(which uv) run pytest -m deb ./tests/install/no_crowdsec

0 comments on commit 0a11be3

Please sign in to comment.