Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ concurrency:

jobs:
deploy:
name: Full deployment test
name: Full deployment test (${{ matrix.install-method }})
if: github.repository == 'nsec/ctf-script'
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
install-method: [pip, poetry, uv]
runs-on: ubuntu-24.04
steps:
- name: Checkout
Expand All @@ -36,9 +38,26 @@ jobs:
echo "Pulled files:"
{ git lfs ls-files | grep -E '[a-f0-9]{10}\s\*'; } || true

- name: Set up uv
if: matrix.install-method == 'uv'
uses: astral-sh/setup-uv@v5

- name: Install python dependencies
run: |
pip install -e .[workflow]
case "${{ matrix.install-method }}" in
pip)
pip install -e .[workflow]
;;
poetry)
pipx install poetry
poetry sync --no-interaction --extras workflow
echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
;;
uv)
uv run --locked --extra workflow ctf --help
echo "$PWD/.venv/bin" >> $GITHUB_PATH
;;
esac

- name: ruff
run: |
Expand Down
Loading
Loading