Skip to content

Commit

Permalink
feat(github): add postcommit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
k-dovgan authored Nov 24, 2023
1 parent 8c5eeea commit da88e6b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/postcommit-check.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit da88e6b

Please sign in to comment.