forked from peterpakos/check_perccli
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 1.01 KB
/
code_quality.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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