Merge pull request #1152 from ynput/enhancement/run_unittest_cicd

Add unit tests as part of CI/CD
This commit is contained in:
Robin De Lillo 2025-03-04 15:35:53 +01:00 committed by GitHub
commit 5dde20b258
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

31
.github/workflows/pr_unittests.yaml vendored Normal file
View file

@ -0,0 +1,31 @@
name: 🧐 Run Unit Tests
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number}}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install requirements
run: ./tools/manage.sh create-env
- name: Run tests
run: ./tools/manage.sh run-tests