check attributes in model and fc #309
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: Generate markdown and PDF documents | |
on: | |
workflow_call: | |
push: | |
branches: | |
- master | |
- 'releases/**' | |
pull_request: | |
branches: | |
- master | |
- develop | |
- 'releases/**' | |
jobs: | |
build-markdown: | |
name: Generating Markdown files | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: Set up TeX Live | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y texlive-xetex texlive-fonts-recommended texlive-plain-generic | |
- name: Install Pandoc | |
run: sudo apt-get install -y pandoc | |
- name: Checkout coded_domains | |
uses: actions/checkout@v4 | |
- name: Install miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: 3.12 | |
channels: conda-forge,defaults | |
channel-priority: true | |
activate-environment: DATAMODEL | |
environment-file: environment.yaml | |
- name: Check conda installation | |
shell: bash -el {0} | |
run: | | |
conda info | |
conda list | |
conda config --show-sources | |
conda config --show | |
printenv | sort | |
- name: Set Package Version | |
shell: bash -l {0} | |
run: | | |
echo "version=$(<VERSION)" >> $GITHUB_ENV | |
echo "=== PKG_VERSION=$version ===" | |
echo "RELEASE=$(python -c "import yaml; print(yaml.safe_load(open('datamodel.yaml'))['model']['revision'])")" >> $GITHUB_ENV | |
echo "=== RELEASE=$RELEASE ===" | |
- shell: bash -el {0} | |
run: pip install -e . | |
- shell: bash -el {0} | |
run: | | |
python ./create_gv.py | |
- name: Build all targets | |
shell: bash -el {0} | |
run: make cleanall all | |
- name: Generate PlantUML Diagrams | |
uses: rotaract/plantuml-action@v1 | |
with: | |
format: svg | |
pattern: outputs/ER-GCOVER.puml | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: geology-data-model-${{ env.RELEASE }} | |
path: | | |
outputs/de/datamodel.pdf | |
outputs/fr/datamodel.pdf | |
outputs/de/datamodel.docx | |
outputs/fr/datamodel.docx | |
outputs/fr/datamodel.html | |
outputs/de/datamodel.html | |
outputs/de/datamodel.css | |
outputs/fr/datamodel.css | |
outputs/de/geocover.png | |
outputs/fr/geocover.png | |
outputs/ER-GCOVER.svg | |
outputs/ER-GCOVER.pdf | |
outputs/geocover-schema-sde.png | |
outputs/geocover-schema-sde.svg | |
exports/coded_domains.xlsx | |
exports/all_geolcode.xlsx | |
exports/all_geolcode.json | |
exports/geocover-schema-sde.json | |
inputs/datamodel.xlsx | |
datamodel.yaml | |