Skip to content

Commit

Permalink
Feature: build-wheels and code-quality action use cached dependencies…
Browse files Browse the repository at this point in the history
…; trigger code-quality on every push

To reduce used compute time on action execution
  • Loading branch information
MHHukiewitz committed Oct 25, 2023
1 parent 5d7c602 commit 71c84b6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
if: startsWith(matrix.os, 'ubuntu-')
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-build-wheels-${{ hashFiles('setup.cfg', 'setup.py') }}
restore-keys: |
${{ runner.os }}-build-wheels-
- name: Install required system packages for macOS
if: startsWith(matrix.os, 'macos-')
run: |
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Test code quality

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -18,6 +16,14 @@ jobs:
- name: Workaround github issue https://github.com/actions/runner-images/issues/7192
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-code-quality-${{ hashFiles('setup.cfg', 'setup.py') }}
restore-keys: |
${{ runner.os }}-code-quality-
- name: Install required system packages only for Ubuntu Linux
run: |
sudo apt-get update
Expand Down

0 comments on commit 71c84b6

Please sign in to comment.