Skip to content

Commit 5585e7f

Browse files
committed
Run the test suite as a GitHub Action
1 parent 3f2c6e2 commit 5585e7f

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
Test:
11+
PreCommit:
1212
name: pre-commit
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: 💾 Check out repository
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

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

32+
Test:
33+
name: Unit Tests
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: 💾 Check out repository
37+
uses: actions/checkout@v4
38+
39+
- name: Set up Python
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: "3.x"
43+
44+
- name: Install OpenSCAD
45+
run: |
46+
sudo apt-get update
47+
sudo apt-get install openscad
48+
49+
- name: Run Unit Tests
50+
shell: bash
51+
working-directory: ./tests
52+
run: python3 -m unittest
53+
3254
concurrency:
3355
group: ${{ github.workflow }}-${{ github.ref }}
3456
cancel-in-progress: false

0 commit comments

Comments
 (0)