-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (41 loc) · 1021 Bytes
/
python.yaml
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
name: Python tests and linting
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
validate-python:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Run lint
run: tox -e lint
- name: Run type
run: tox -e type
test-python:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Set up fake AWS credentials
run: sh tests/fake_aws_creds.sh
- name: Run tests
run: tox -e 3.11