-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.35 KB
/
test-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
name: Test-build
on:
push:
branches-ignore:
- master
jobs:
test-build:
runs-on: ubuntu-latest
environment: Build
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_READ_KEY_UTIL }}
name: id_ed25519 # optional
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail)
- name: Install Python
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: install/upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install Dependencies
run: python -m pip install -r requirements.txt
- name: Build
run: |
mkdir test-results
python3 -m invoke test --junit --enforce-percent 99
- name: Store test results as artifacts
uses: actions/upload-artifact@v2
with:
name: store test results
path: test-results
- name: Style
run: python3 -m invoke style
- name: Lint
run: python3 -m invoke lint --fail-under=9