From e845c8a20940554f44ebf5b74f7b63193189292b Mon Sep 17 00:00:00 2001 From: Michael Altobelli Date: Sun, 24 Nov 2024 20:59:58 -0500 Subject: [PATCH] Create CI for packaging --- .github/workflows/python-app.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..25a29f5 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,39 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python application + +on: + push: + branches: [ "obs", "firefox" ] + pull_request: + branches: [ "obs", "firefox" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + bash install_prereq_ubuntu.sh + - name: Package an app + run: | + mkdir /out/ + python build_a_pkg.py + - name: Test with pytest + uses: actions/upload-artifact@v4.4.3 + with: + # Artifact name + name: artifact.pkg + # A file, directory or wildcard pattern that describes what to upload + path: /out/*.pkg