[ci] Setup Github actions to run 'build_examples.py' as a test on each pull/pull request. (#34)

Co-authored-by: Florian Pigorsch <florian@concept.de>
This commit is contained in:
Florian Pigorsch 2020-06-28 14:59:29 +02:00 committed by GitHub
parent a7419c444e
commit 6cf7178a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Create Examples
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
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: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Create Examples
run: PYTHONPATH=$(pwd)/src:$PYTHONPATH cd src/wireviz/ && python build_examples.py