Skip to content

ghactions: add build package (save artifacts, parent folder workaround) #15

ghactions: add build package (save artifacts, parent folder workaround)

ghactions: add build package (save artifacts, parent folder workaround) #15

Workflow file for this run

name: Code quality
on: [push, pull_request]
jobs:
code_quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: sudo apt-get update
- run: sudo apt-get install -y python3-venv
- run: |
python3 -m venv venv
venv/bin/pip install -r requirements-dev.lock
- run: . venv/bin/activate && make coverage
- run: . venv/bin/activate && make lint
build_package:
needs: [code_quality]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: sudo apt-get update
- run: sudo apt-get install -y build-essential devscripts debhelper-compat
- run: make build-deb
- name: Workaround actions/upload-artifact#176
run: |
echo "artifacts_path=$(realpath ..)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: deb-packages
path: |
${{ env.artifacts_path }}/*.deb