Skip to content

Commit

Permalink
Create CI for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
maltob authored Nov 25, 2024
1 parent 64167bb commit e845c8a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e845c8a

Please sign in to comment.