-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.11 KB
/
Copy pathtests.yml
File metadata and controls
51 lines (44 loc) · 1.11 KB
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
name: Unit Tests
on:
push:
branches:
- main
paths-ignore:
- "**/README.md"
- "**/.gitignore"
- "**/.svg"
pull_request:
types:
- opened
- synchronize
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
# - self-hosted
python-version:
# - 3.8
- 3.9
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup Python environment (GitHub Actions)
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Setup Python environment (self hosted)
if: ${{ matrix.os == 'self-hosted' }}
run: alias python=python${{ matrix.python-version }}
- name: Setup Poetry
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: abatilo/actions-poetry@v2.1.3
with:
poetry-version: "1.1.13"
- name: Install Dependencies
run: poetry install
- name: Run Unit testing
run: poetry run tox