-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (51 loc) · 1.36 KB
/
sdk_validation.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
name: Validate
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.11' ]
name: Python ${{ matrix.python-version }}
timeout-minutes: 10
env:
SHIPPO_TOKEN: ${{ secrets.SHIPPO_TOKEN }}
concurrency:
group: python-sdk-check-${{ github.event.pull_request.number }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
id: setup_python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: cache dependencies
uses: actions/cache@v4
with:
path: ./.venv
key: python-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('setup.py') }}
- name: Install dependencies
run: |
make install
- name: Check
run: make check
- name: Test Reports
if: always()
uses: xportation/junit-coverage-report@main
with:
junit-path: build/test_results/report.xml
- name: Archive test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.python-version }}
path: |
build/test_results