-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.02 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Run tests
on:
push:
branches:
- '**'
tags-ignore:
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- $default-branch
workflow_call:
jobs:
test:
name: Test, lint, format check
runs-on: ubuntu-20.04
strategy:
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: false
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Install dependencies
run: poetry install
- name: Format
run: >
poetry run yapf -dr
aws_secrets_cache
tests
- name: Run tests
run: poetry run pytest tests