ghactions: add build package (save artifacts, parent folder workaround) #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |