From 0aeba69b011a904cc88ed886fd7eacfb4308eef0 Mon Sep 17 00:00:00 2001 From: istos Date: Thu, 30 Jul 2026 08:30:55 +0200 Subject: [PATCH] CI: run the test suite on every PR and push to main Ubuntu runner, Python 3.11 and 3.13 (stdlib-only project: oldest supported and newest current). Git identity and init.defaultBranch=main configured for the tests that build scratch repos; everything else the suite needs (bash, tar, rsync, stub binaries) is on the runner already. Co-Authored-By: Claude Fable 5 --- .github/workflows/tests.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..7d90519 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,28 @@ +name: tests + +on: + push: + branches: [main] + pull_request: + workflow_dispatch: + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + # Stdlib-only, no install: the suite must pass on the oldest + # Python bench supports and the newest current one. + python-version: ["3.11", "3.13"] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Configure git for the tests that build scratch repos + run: | + git config --global user.name ci + git config --global user.email ci@bench.invalid + git config --global init.defaultBranch main + - run: python3 -m unittest discover -s tests -v