mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Merge pull request #1152 from ynput/enhancement/run_unittest_cicd
Add unit tests as part of CI/CD
This commit is contained in:
commit
5dde20b258
1 changed files with 31 additions and 0 deletions
31
.github/workflows/pr_unittests.yaml
vendored
Normal file
31
.github/workflows/pr_unittests.yaml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue