Skip to content

Commit

Permalink
Run the test suite as a GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
EmperorArthur committed Aug 4, 2024
1 parent 3f2c6e2 commit 207e9dc
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:
workflow_dispatch:

jobs:
Test:
PreCommit:
name: pre-commit
runs-on: ubuntu-latest
steps:
- name: 💾 Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🪝 Cache pre-commit hooks
uses: actions/cache@v3
Expand All @@ -29,6 +29,28 @@ jobs:
- name: 🔥 Test
run: pre-commit run --show-diff-on-failure --all-files

Test:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: 💾 Check out repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install OpenSCAD
run: |
sudo apt-get update
sudo apt-get install openscad
- name: Run Unit Tests
shell: bash
working-directory: ./tests
run: python3 -m unittest

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

0 comments on commit 207e9dc

Please sign in to comment.