Skip to content

Update GH Actions

Update GH Actions #7

Workflow file for this run

name: On `push` actions
on: [push]
jobs:
PyTest:
runs-on: ubuntu-24.04
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.8.3"
- uses: actions/checkout@v4
- name: Set up poetry environment
run: poetry install --without extras
- name: Run pytest
run: poetry run pytest
BuildDeb:
runs-on: ubuntu-24.04
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.8.3"
- uses: actions/checkout@v4
- name: Install dev-dependencies
run: |
sudo apt install -y build-essential
sudo ./scripts/install_dpkg_dependencies.sh
- name: Set up poetry environment
run: poetry install
- name: Change in-app version
run: bash ./scripts/bump_version.sh "0.99.git.$(git rev-parse HEAD)"
- name: Run build script
run: bash ./scripts/build_debian/build.sh
- name: Upload bundle
uses: actions/upload-artifact@v4
with:
name: Debian package
path: ./scripts/build_debian/openfreebuds_*.deb