Skip to content

Commit

Permalink
ci: cache for mypy and black
Browse files Browse the repository at this point in the history
  • Loading branch information
jorwoods committed Oct 15, 2024
1 parent 7d4243f commit 8ef9eda
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/meta-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Get pip cache dir
id: pip-cache
shell: bash
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: cache
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Python tests

on: [push, pull_request]
# pull_request: {}
# push:
# branches:
# - development
# - master
on:
pull_request: {}
push:
branches:
- development
- master

jobs:
build:
Expand Down

0 comments on commit 8ef9eda

Please sign in to comment.