diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml new file mode 100644 index 00000000..aa64597d --- /dev/null +++ b/.github/workflows/build_and_test.yml @@ -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 diff --git a/core/tests/test_example.py b/core/tests/test_example.py new file mode 100644 index 00000000..0740a97c --- /dev/null +++ b/core/tests/test_example.py @@ -0,0 +1,10 @@ +import unittest + + +class TestExample(unittest.TestCase): + def test_a(self): + self.assertEqual(42, 42) + + +if __name__ == "__main__": + unittest.main() diff --git a/requirements.txt b/requirements.txt index 11c61f0b..58dca412 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,3 +22,4 @@ tomli==2.0.1 tomlkit==0.13.0 watchfiles==0.22.0 websockets==12.0 +hatch==1.12.0 \ No newline at end of file diff --git a/studio/tests/test_studio_example.py b/studio/tests/test_studio_example.py new file mode 100644 index 00000000..0740a97c --- /dev/null +++ b/studio/tests/test_studio_example.py @@ -0,0 +1,10 @@ +import unittest + + +class TestExample(unittest.TestCase): + def test_a(self): + self.assertEqual(42, 42) + + +if __name__ == "__main__": + unittest.main()