Skip to content

Commit e0e529a

Browse files
committed
Minor Github Actions updates
* `.github/workflows/checks.yaml`: * Make `Checks` run for every branch and PR * Use glob in `hashFiles`, instead of hard-coded names * Use title-case naming for steps * Rename `.github/workflows/run-tests.yaml` to `.github/workflows/tests.yaml` and `Tests` as title Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
1 parent 1ca1d86 commit e0e529a

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.github/workflows/checks.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ name: Checks
33

44
on:
55
push:
6-
branches:
7-
- master
86
pull_request:
9-
branches:
10-
- master
117

128
env:
139
CACHE_VERSION: 1
@@ -43,9 +39,7 @@ jobs:
4339
id: generate-python-key
4440
run: >-
4541
echo "key=${{ env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{
46-
hashFiles('pyproject.toml', 'requirements_test.txt',
47-
'requirements_test_min.txt', 'requirements_test_pre_commit.txt') }}" >>
48-
$GITHUB_OUTPUT
42+
hashFiles('pyproject.toml', 'requirements/**.txt') }}" >> $GITHUB_OUTPUT
4943
- name: Restore Python virtual environment
5044
id: cache-venv
5145
uses: actions/cache@v4.0.0
@@ -66,7 +60,7 @@ jobs:
6660
path: ${{ env.PRE_COMMIT_CACHE }}
6761
key: >-
6862
${{ runner.os }}-${{ steps.generate-pre-commit-key.outputs.key }}
69-
- name: install dependencies
63+
- name: Install Dependencies
7064
if: steps.cache-venv.outputs.cache-hit != 'true'
7165
run: make install
7266

.github/workflows/run-tests.yaml renamed to .github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Testing
2+
name: Tests
33

44
on:
55
push:

0 commit comments

Comments
 (0)