-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.49 KB
/
unit-tests.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: Tests
on:
push:
branches: [ feature/* , main, hotfix/*, release/* ]
# pull_request:
# branches: [ main, release/* ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: pyTest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: 3.10.6
- name: Install dependencies
run: |
python -m pip install --upgrade setuptools pip wheel
make install
make install-dev
- name: Make envfile
uses: SpicyPizza/create-envfile@v1
with:
envkey_VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
envkey_VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
- name: Run unit tests
run: make test
# - name: SonarCloud Scan
# uses: SonarSource/sonarcloud-github-action@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: coverage.xml
# env_vars: OS,PYTHON
# name: codecov-umbrella
# fail_ci_if_error: true