-
Notifications
You must be signed in to change notification settings - Fork 20
39 lines (31 loc) · 923 Bytes
/
test.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
name: Unit Testing
on:
push:
branches: '**'
pull_request:
branches: [ 'main', 'dev' ]
jobs:
lint:
name: Run Unit Tests
runs-on: [ 'ubuntu-latest' ]
env:
AGENT_TOOLSDIRECTORY: /home/runner/actions-runner/_work/_tool/
defaults:
run:
shell: bash -el {0}
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Checkout LFS files
run: git lfs pull
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9.16'
cache: 'pip' # caching pip dependencies
cache-dependency-path: '**/requirements_full.txt'
token: ${{ secrets.QUARK_GH_GITHUB_COM_TOKEN }}
- name: Install Dependencies
run: pip install -r .settings/requirements_full.txt
- name: Run tests with unittest
run: python -m unittest discover .