-
Notifications
You must be signed in to change notification settings - Fork 588
47 lines (43 loc) · 1.21 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
name: Python test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
strategy:
fail-fast: false
matrix:
version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-20.04
env:
ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY_ID }}
ACCESS_KEY_SECRET: ${{ secrets.ACCESS_KEY_SECRET }}
REGION_ID: ${{ vars.REGION_ID }}
USER_ID: ${{ secrets.USER_ID }}
ROOT_UID: ${{ secrets.ROOT_UID }}
CONCURRENT_ID: "${{ github.run_number }}${{ strategy.job-index }}"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install dependencies
run: |
pip install unittest2
pip install coverage
pip install pycodestyle
pip install mock
pip install jmespath cryptography
pip install 'pytest<7.4.4'
- name: Lint
run: |
make lint
- name: Test
run: |
make test
make coverage-report
test -z $ACCESS_KEY_ID -a -z $ACCESS_KEY_SECRET || make functional-test
bash <(curl -s https://codecov.io/bash)