Skip to content

🔧 Add CI workflow for linting and Flatpak building #1

🔧 Add CI workflow for linting and Flatpak building

🔧 Add CI workflow for linting and Flatpak building #1

Workflow file for this run

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 }}