Use 'dot -Tsvg_inline' to render diagrams #56
Workflow file for this run
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: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Set up dependencies | |
run: | | |
sudo apt install inkscape | |
docker run --rm --interactive --name graphviz $GRAPHVIZ_IMAGE | |
echo "#!/bin/sh" > /usr/local/bin/dot | |
echo "docker exec --interactive graphviz /usr/bin/dot $@" | |
chmod +x /usr/local/bin/dot | |
# curl --progress-bar --remote-name --output-dir $RUNNER_TEMP $GRAPHVIZ_DOWNLOAD_URL | |
# tar -xzf $RUNNER_TEMP/*.tar.gz --directory $RUNNER_TEMP | |
# pushd $RUNNER_TEMP/graphviz-*/ | |
# ./configure --with-rsvg=yes --disable-swig | |
# make -j4 | |
# sudo make install | |
# popd | |
python -m pip install --upgrade pip | |
python -m pip install --requirement requirements.txt | |
env: | |
GRAPHVIZ_IMAGE: ghcr.io/ikalnytskyi/dot:latest | |
#GRAPHVIZ_DOWNLOAD_URL: https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/11.0.0/graphviz-11.0.0.tar.gz | |
- name: Run Holocron | |
run: holocron run compile |