From 6cf7178a9f0bea304d637f5aef10dde4d281c0c4 Mon Sep 17 00:00:00 2001 From: Florian Pigorsch Date: Sun, 28 Jun 2020 14:59:29 +0200 Subject: [PATCH] [ci] Setup Github actions to run 'build_examples.py' as a test on each pull/pull request. (#34) Co-authored-by: Florian Pigorsch --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ec26b95 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 \ No newline at end of file