Skip to content

Commit

Permalink
cache pip dependencies on hosted runners, remove extra runs
Browse files Browse the repository at this point in the history
  • Loading branch information
palp committed Jul 26, 2023
1 parent ba60896 commit f811542
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Run black
on: [push, pull_request]
on: [pull_request]

jobs:
lint:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build package

on:
push:
branches: [ main ]
pull_request:

jobs:
Expand All @@ -19,6 +20,7 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit f811542

Please sign in to comment.