Skip to content

Commit

Permalink
chore(ci): add tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Peterka committed Feb 13, 2024
1 parent dd706c3 commit 6ed259c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6ed259c

Please sign in to comment.