Skip to content

Commit

Permalink
🔧 Add CI workflow for linting and Flatpak building
Browse files Browse the repository at this point in the history
  • Loading branch information
Revisto committed Dec 4, 2024
1 parent a4da47c commit e492156
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches: [master]
pull_request:

jobs:
lint:
name: Lint with flake8
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint
run: |
# Stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --builtins="_"
# Exit-zero treats all errors as warnings
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
flatpak:
name: Flatpak Builder
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged
steps:
- uses: actions/checkout@v4
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: "drum-machine-devel.flatpak"
manifest-path: "io.github.revisto.drum-machine.json"
run-tests: "true"
cache-key: flatpak-builder-${{ github.sha }}

0 comments on commit e492156

Please sign in to comment.