Merge pull request #22 from BuildingSync/develop #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |