From 1aedd30f5acea2006ca99e8c21f88e9add392fa1 Mon Sep 17 00:00:00 2001 From: oir Date: Wed, 22 Apr 2026 21:19:54 -0400 Subject: [PATCH 1/4] attempt to speed up CI --- .github/workflows/test.yml | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4b1ad48..36d983a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: - name: Install run: pip install hatch pyright .[test] - name: Run tests - run: hatch test --all --cover + run: hatch test --all --cover --parallel - name: Run static checks run: hatch run test:pyright - name: Upload coverage reports to Coveralls diff --git a/pyproject.toml b/pyproject.toml index 4f8ce43..abe8fa3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ version-file = "startle/_version.py" dependencies = [ "pytest", "pytest-cov", "pyright", "typing-extensions" ] [tool.hatch.envs.hatch-test] -dependencies = [ "pytest", "pytest-cov", "pyright", "typing-extensions" ] +dependencies = [ "pytest", "pytest-cov", "pytest-xdist", "pyright", "typing-extensions" ] args = ["-ra", "-q"] [[tool.hatch.envs.hatch-test.matrix]] From cf58fa9d86e42c521199ee4d6664efc7a0712076 Mon Sep 17 00:00:00 2001 From: oir Date: Wed, 22 Apr 2026 21:31:54 -0400 Subject: [PATCH 2/4] cache hatch envs --- .github/workflows/test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 36d983a..9666072 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,17 @@ jobs: 3.12 3.13 3.14 + - name: Compute cache window + id: cache_window + run: echo "week=$(date +%Y-W%U)" >> $GITHUB_OUTPUT + - name: Cache hatch envs + uses: actions/cache@v4 + with: + path: ~/.local/share/hatch + key: hatch-${{ runner.os }}-${{ steps.cache_window.outputs.week }}-${{ hashFiles('pyproject.toml') }} + restore-keys: | + hatch-${{ runner.os }}-${{ steps.cache_window.outputs.week }}- + hatch-${{ runner.os }}- - name: Install run: pip install hatch pyright .[test] - name: Run tests From 97a9e0d2c3f9cccc7c0de9e4382c72fb9e3c205a Mon Sep 17 00:00:00 2001 From: oir Date: Wed, 22 Apr 2026 21:37:35 -0400 Subject: [PATCH 3/4] trigger ci From 2b7978b64a66855b3ba4c7895e78c2f7fdda2db9 Mon Sep 17 00:00:00 2001 From: oir Date: Wed, 22 Apr 2026 21:52:31 -0400 Subject: [PATCH 4/4] . --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9666072..86ab4f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,10 @@ jobs: 3.14 - name: Compute cache window id: cache_window - run: echo "week=$(date +%Y-W%U)" >> $GITHUB_OUTPUT + run: | + week=$(date +%Y-W%U) + echo "week=$week" >> $GITHUB_OUTPUT + echo "Cache window: $week" - name: Cache hatch envs uses: actions/cache@v4 with: