From da88e6b13522687c439416e167ae1d6c2bec862f Mon Sep 17 00:00:00 2001 From: Kateryna Dovgan <46348880+k-dovgan@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:59:57 +0200 Subject: [PATCH] feat(github): add postcommit workflow --- .github/workflows/postcommit-check.yml | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/postcommit-check.yml diff --git a/.github/workflows/postcommit-check.yml b/.github/workflows/postcommit-check.yml new file mode 100644 index 00000000..a0596fa1 --- /dev/null +++ b/.github/workflows/postcommit-check.yml @@ -0,0 +1,40 @@ +name: Universum check +on: + push + +jobs: + universum_postcommit: + name: Universum postcommit + runs-on: ubuntu-latest + + steps: + - name: Setup python 3.8 + uses: actions/setup-python@v4 + with: + python-version: 3.8 + + - name: Install dependency + run: pip install universum[test] + + - name: Universum + run: + python -u -m universum + --fail-unsuccessful + --vcs-type="git" + --git-repo "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" + --git-refspec "$GITHUB_REF_NAME" + --no-archive + --no-diff + + - name: Publish Test Results + uses: EnricoMi/publish-unit-test-result-action@v1 + if: always() + with: + files: artifacts/*.xml + + - name: Collect artifacts + uses: actions/upload-artifact@v2 + if: ${{ always() }} + with: + name: artifacts + path: artifacts