Skip to content

Commit

Permalink
Minor Github Actions updates
Browse files Browse the repository at this point in the history
* `.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 <[email protected]>
  • Loading branch information
stdedos committed Jan 28, 2024
1 parent 1ca1d86 commit e0e529a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ name: Checks

on:
push:
branches:
- master
pull_request:
branches:
- master

env:
CACHE_VERSION: 1
Expand Down Expand Up @@ -43,9 +39,7 @@ jobs:
id: generate-python-key
run: >-
echo "key=${{ env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{
hashFiles('pyproject.toml', 'requirements_test.txt',
'requirements_test_min.txt', 'requirements_test_pre_commit.txt') }}" >>
$GITHUB_OUTPUT
hashFiles('pyproject.toml', 'requirements/**.txt') }}" >> $GITHUB_OUTPUT
- name: Restore Python virtual environment
id: cache-venv
uses: actions/[email protected]
Expand All @@ -66,7 +60,7 @@ jobs:
path: ${{ env.PRE_COMMIT_CACHE }}
key: >-
${{ runner.os }}-${{ steps.generate-pre-commit-key.outputs.key }}
- name: install dependencies
- name: Install Dependencies
if: steps.cache-venv.outputs.cache-hit != 'true'
run: make install

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Testing
name: Tests

on:
push:
Expand Down

0 comments on commit e0e529a

Please sign in to comment.