From d03385d037fbbc054f66d8468703b35855cc8fc0 Mon Sep 17 00:00:00 2001 From: Preston Williams Date: Sun, 1 Nov 2026 16:36:19 -0500 Subject: [PATCH] Run tests in GitHub Actions Runs pytest on every PR and push to main, with gitleaks installed from its release binary. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/tests.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..331322b --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,26 @@ +name: tests + +on: + pull_request: + push: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: astral-sh/setup-uv@v6 + with: + enable-cache: true + + # Release binary rather than gitleaks-action, which needs a license for organizations. + - name: Install gitleaks + run: | + curl -sSfL https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_x64.tar.gz \ + | sudo tar -xz -C /usr/local/bin gitleaks + gitleaks version + + - run: uv sync --locked + - run: uv run pytest