From 6ed259c80d70fdc0ce0b33041acd5a68adfc8640 Mon Sep 17 00:00:00 2001 From: Tomas Peterka Date: Tue, 13 Feb 2024 12:33:46 +0100 Subject: [PATCH] chore(ci): add tests to CI --- .github/workflows/release.yml | 3 +++ .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 649b5bd..2b80f84 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,9 @@ jobs: name: Tag and Release runs-on: ubuntu-latest steps: + - name: Test first + uses: test.yml + - name: Checkout repository (full-depth) uses: actions/checkout@v4 with: { fetch-depth: 0 } # Required to determine version diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2e36b19 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: "[auto] test" + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_call: + +jobs: + build: + name: Run automated tests + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install DEV dependencies + run: pip install -e .[dev] + + - name: Run pro-commit checks + run: | + pip install pre-commit + pre-commit run --all-files + + - name: Run tests + run: ./run_tests.sh