-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 1019 Bytes
/
main.yaml
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
name: main
on: push
jobs:
# scan_fs:
# runs-on: ubuntu-latest
# container:
# image: registry.nextpertise.tools/nextpertise-proxy/aquasec/trivy:0.14.0
# credentials:
# username: ${{ secrets.REGISTRY_NEXTPERTISE_TOOLS_ACCOUNT }}
# password: ${{ secrets.REGISTRY_NEXTPERTISE_TOOLS_KEY }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: scan fs
# run: trivy --light fs --quiet --exit-code 1 .
unittest:
runs-on: ubuntu-latest
container:
image: registry.nextpertise.tools/nextpertise/python-poetry:3.8
credentials:
username: ${{ secrets.REGISTRY_NEXTPERTISE_TOOLS_ACCOUNT }}
password: ${{ secrets.REGISTRY_NEXTPERTISE_TOOLS_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run unittest
run: |
poetry install
poetry run pytest
poetry run pylint src test || exit 0 # Ignore pylint failures as they are not as important as tests