-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from trappitsch/unit_test_workflow
Unit test workflow
- Loading branch information
Showing
2 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters