-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (42 loc) · 1.16 KB
/
main.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
name: windup-integration-test
on: [push, pull_request]
jobs:
pre-commit:
name: Pre-Commit Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: '3.8'
architecture: 'x64'
- name: Pre-Commit Checks
run: |
python -m pip install pre-commit
pre-commit run -a
- name: Analysis (git diff)
if: failure()
run: git diff
tests:
name: Python-${{ matrix.python-version }}
needs: pre-commit
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8' ]
steps:
- name: Checkout to main
uses: actions/checkout@main
- name: Setup Python-${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Setup windup-integration-test
run: |
python -m pip install --upgrade pip setuptools
pip install -e .
- name: Unit Tests
run: py.test -m ci -v