Skip to content

Commit

Permalink
ci-cd: run generate script on gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
tngTUDOR committed Oct 9, 2024
1 parent 3df8d1e commit e4ce733
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/generation-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# This workflow will install Python dependencies and run tests
# across operating systems, select versions of Python, and user + dev environments
# For more info see:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python 🐍 CI/CD tests for ttl generation

on:
push:
branches: [main]
paths-ignore: # prevents workflow execution when only these types of files are modified
- "**.md" # wildcards prevent file in any repo dir from trigering workflow
- "**.bib"
- "**.ya?ml"
- "LICENSE"
- ".gitignore"
pull_request:
branches: [main]
types: [opened, reopened] # excludes syncronize to avoid redundant trigger from commits on PRs
paths-ignore:
- "**.md"
- "**.bib"
- "**.ya?ml"
- "LICENSE"
- ".gitignore"
workflow_dispatch: # also allow manual trigger, for testing purposes

jobs:
generate_script:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

# general Python setup
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
# install
- name: Install package
run: |
pip install .
# generate the ttl files
- name: generate
run: |
sh scripts/generate.sh

0 comments on commit e4ce733

Please sign in to comment.