-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (46 loc) · 1.3 KB
/
pr-build.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: PR Build
on:
pull_request:
branches: [master]
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Pipenv
run: python -m pip install --upgrade pipenv
- name: Checkout Repository
uses: actions/checkout@v4
- name: Cache Pipenv
id: cache-pipenv
uses: actions/cache@v4
with:
path: ~/.local/share/virtualenvs
key: pipenv-${{ hashFiles('Pipfile.lock') }}
- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pipenv install --deploy --dev
- name: Set up locale
run: |
sudo locale-gen de_DE.UTF-8
sudo dpkg-reconfigure locales
- name: Run unit tests
run: pipenv run hbunittest
env:
TEST_OUTPUT_FILE_NAME: unit.xml
- name: Upload unit test results
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: unit-test-results
path: unit.xml
- name: Run Mypy
run: pipenv run mypy src
- name: Run Flake8
run: pipenv run flake8
- name: Run Pylint
run: pipenv run pylint src