-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (52 loc) · 2.23 KB
/
ci.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
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on: [push]
jobs:
tests:
name: Run tests with Poetry
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install poetry
uses: abatilo/[email protected]
- name: Install poetry (and update) and pre-commit
run: |
poetry update
poetry run pre-commit install
- name: Run pre-commit
run: poetry run pre-commit run --all-files
- name: Run tests
run: poetry run pytest
- name: Run Generator (BuildingSync 2.3)
run: |
curl -L -o bsyncpy/BuildingSync-2.3.xsd https://github.com/BuildingSync/schema/releases/download/v2.3.0/BuildingSync.xsd
cd bsyncpy
poetry run python bsyncpy_generator.py BuildingSync-2.3.xsd
- name: Run Generator (BuildingSync 2.4)
run: |
curl -L -o bsyncpy/BuildingSync-2.4.xsd https://github.com/BuildingSync/schema/releases/download/v2.4.0/BuildingSync.xsd
cd bsyncpy
poetry run python bsyncpy_generator.py BuildingSync-2.4.xsd
- name: Run Generator (BuildingSync 2.5)
run: |
curl -L -o bsyncpy/BuildingSync-2.5.xsd https://github.com/BuildingSync/schema/releases/download/v2.5.0/BuildingSync.xsd
cd bsyncpy
poetry run python bsyncpy_generator.py BuildingSync-2.5.xsd
- name: Run Generator (BuildingSync Develop V2)
run: |
curl -L -o bsyncpy/BuildingSync-develop-v2.xsd https://raw.githubusercontent.com/BuildingSync/schema/develop-v2/BuildingSync.xsd
cd bsyncpy
poetry run python bsyncpy_generator.py BuildingSync-develop-v2.xsd
- name: Run Generator (BuildingSync Develop V3)
run: |
curl -L -o bsyncpy/BuildingSync-develop-v3.xsd https://raw.githubusercontent.com/BuildingSync/schema/develop-v3/BuildingSync.xsd
cd bsyncpy
poetry run python bsyncpy_generator.py BuildingSync-develop-v3.xsd