-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (50 loc) · 1.2 KB
/
auto_test_ubuntu.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
55
56
57
58
name: Tests Ubuntu
on:
workflow_dispatch:
inputs:
log_level:
description: "Log level"
required: false
default: "warning"
type: choice
options:
- error
- warning
- info
- debug
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
jobs:
unittest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
path: ~/.cache/pip
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.7
architecture: x64
- uses: actions/cache@v3
id: cache-pip
with:
path: ${{ matrix.path }}
key: ${{ runner.os }}-pip-cache-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-cache
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install Repo Code
run: pip install -e .[dev]
- name: Run unit tests
run: python -m pytest --capture=fd .