mirror of
https://github.com/kennetek/gridfinity-rebuilt-openscad.git
synced 2025-01-09 15:49:44 +00:00
Run the test suite as a GitHub Action
This commit is contained in:
parent
3f2c6e28c5
commit
5585e7f42c
1 changed files with 24 additions and 2 deletions
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
|
@ -8,12 +8,12 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Test:
|
PreCommit:
|
||||||
name: pre-commit
|
name: pre-commit
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 💾 Check out repository
|
- name: 💾 Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 🪝 Cache pre-commit hooks
|
- name: 🪝 Cache pre-commit hooks
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
|
@ -29,6 +29,28 @@ jobs:
|
||||||
- name: 🔥 Test
|
- name: 🔥 Test
|
||||||
run: pre-commit run --show-diff-on-failure --all-files
|
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:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
Loading…
Reference in a new issue