Unit tests do not run on master push

They are only trigerred on PRs
This commit is contained in:
Théo DURR 2022-08-26 16:12:17 +02:00
parent 596126f4f4
commit b3ad5c5df9
No known key found for this signature in database
GPG Key ID: 708858E9F7281E30
2 changed files with 2 additions and 7 deletions

View File

@ -31,9 +31,8 @@ jobs:
# See https://github.com/ae-utbm/sith3/wiki/GitHub-Actions#deployment-action # See https://github.com/ae-utbm/sith3/wiki/GitHub-Actions#deployment-action
script: | script: |
BASE_DIR="$(dirname "$(realpath "$0")")"
export PATH="$HOME/.poetry/bin:$PATH" export PATH="$HOME/.poetry/bin:$PATH"
pushd $BASE_DIR pushd ${{secrets.SITH_PATH}}
VERSION_LAST=$(git rev-parse HEAD) VERSION_LAST=$(git rev-parse HEAD)
git pull git pull

View File

@ -1,8 +1,6 @@
name: Unit Testing name: Unit Testing
on: on:
push:
branches: [ master ]
pull_request: pull_request:
branches: [ master ] branches: [ master ]
@ -65,5 +63,3 @@ jobs:
- name: Check linting - name: Check linting
run: black --check . run: black --check .