File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 1919# can be controlled via branch protection
2020
2121on :
22- push : {}
22+ push :
23+ branches-ignore :
24+ - master
2325 pull_request : {}
2426
2527#
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 : |
You can’t perform that action at this time.
0 commit comments