Skip to content

Commit 15d4ec9

Browse files
committed
Release Testing
1 parent fd0d787 commit 15d4ec9

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ env:
1919
# can be controlled via branch protection
2020

2121
on:
22-
push: {}
22+
push:
23+
branches-ignore:
24+
- master
2325
pull_request: {}
2426

2527
#
@@ -32,7 +34,7 @@ jobs:
3234
steps:
3335

3436
- name: Determine whether this is a release build
35-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
37+
if: ${{ github_event_name == 'pull_request' && github.base_ref == 'main' }}
3638
env:
3739
IS_RELEASE: "true"
3840
run: echo "We will be performing a release upon success"
@@ -45,12 +47,18 @@ jobs:
4547
with:
4648
python-version: ${{ env.PYTHON_VERSION }}
4749

50+
- name: Establish a cache for dependencies
51+
uses: actions/cache@v2
52+
with:
53+
path: ~/.local
54+
key: ${{ runner.os }}
55+
4856
- name: Install dependencies
4957
run: |
5058
python -m pip install --upgrade pip
51-
pip install wheel
52-
pip install -r requirements.txt
53-
pip install -r test-requirements.txt
59+
pip install --user wheel
60+
pip install --user -r requirements.txt
61+
pip install --user -r test-requirements.txt
5462
5563
- name: Lint
5664
run: |

0 commit comments

Comments
 (0)