-
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.
Add working test examples, and github workflow to run test and build
I want to move these to another directory, but starting here
- Loading branch information
Showing
4 changed files
with
54 additions
and
0 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,33 @@ | ||
name: Build Desktop Apps | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
cache: "pip" | ||
|
||
- run: pip install -r requirements.txt | ||
|
||
- name: Build Core | ||
run: hatch build | ||
working-directory: ./core | ||
|
||
- name: Test Core | ||
run: hatch test | ||
working-directory: ./core | ||
|
||
- name: Build Studio | ||
run: hatch build | ||
working-directory: ./studio | ||
|
||
- name: Test Studio | ||
run: hatch test | ||
working-directory: ./studio |
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,10 @@ | ||
import unittest | ||
|
||
|
||
class TestExample(unittest.TestCase): | ||
def test_a(self): | ||
self.assertEqual(42, 42) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
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 |
---|---|---|
|
@@ -22,3 +22,4 @@ tomli==2.0.1 | |
tomlkit==0.13.0 | ||
watchfiles==0.22.0 | ||
websockets==12.0 | ||
hatch==1.12.0 |
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,10 @@ | ||
import unittest | ||
|
||
|
||
class TestExample(unittest.TestCase): | ||
def test_a(self): | ||
self.assertEqual(42, 42) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |