From b3ad5c5df928076038e94f529bdbc71a6fac2d78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DURR?= Date: Fri, 26 Aug 2022 16:12:17 +0200 Subject: [PATCH] Unit tests do not run on master push They are only trigerred on PRs --- .github/workflows/deploy.yml | 3 +-- .github/workflows/unittests.yml | 6 +----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 98862db5..ebfc51fc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,9 +31,8 @@ jobs: # See https://github.com/ae-utbm/sith3/wiki/GitHub-Actions#deployment-action script: | - BASE_DIR="$(dirname "$(realpath "$0")")" export PATH="$HOME/.poetry/bin:$PATH" - pushd $BASE_DIR + pushd ${{secrets.SITH_PATH}} VERSION_LAST=$(git rev-parse HEAD) git pull diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 9356882a..f272c9ee 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -1,8 +1,6 @@ name: Unit Testing on: - push: - branches: [ master ] pull_request: branches: [ master ] @@ -64,6 +62,4 @@ jobs: python -m pip install black==22.6.0 - name: Check linting - run: black --check . - - + run: black --check . \ No newline at end of file