-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.13 KB
/
unit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: unittests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
MAIN_PYTHON_VERSION: "3.12"
jobs:
# Build and test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
unit-tests:
runs-on: {{matrix.os }}
steps:
- name: Checkout box
uses: actions/checkout@v4
with:
path: "box"
- name: Install python and setup project
uses: actions/setup-python@v5
with:
python-version: env.MAIN_PYTHON_VERSION
- name: Pip install
run: |
pip install box
pip install build
- name: Unit test with qtcowsay (GUI)
uses: actions/check-run-action@v4
with:
repository: trappitsch/qtcowsay
path: "qtcowsay"
run: |
cd qtcowsay
box init -q -b build
box package
- name: Unit test with cowsay (CLI)
uses: actions/check-run-action@v4
with:
repository: VassuDevanS/cowsay-python
path: "cowsay"
run: |
git checkout 3db622cefd8b11620ece7386d4151b5e734b078b
cd cowsay
box init -q -b build
box package