Avoid upload of unchanged TTL files #175 #125
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 WIS2 Topic Hierarchy as TTL files | |
on: | |
pull_request: | |
paths: | |
- 'topic-hierarchy/**.csv' | |
- '**.py' | |
- '**.yml' | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10'] | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip3 install flake8 | |
- name: Generate TTL files | |
run: | | |
python3 scripts/codelists2ttl.py | |
- name: run flake8 | |
run: flake8 scripts/ |