Copied 2023 to Äldre #28
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
# This is a basic workflow to help you get started with Actions | |
name: Parse into JSON | |
# Controls when the workflow will run | |
on: | |
push: | |
paths: | |
- '**.tex' | |
- '**.py' | |
- '**/json-parse.yml' | |
jobs: | |
parse-to-json: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pylatexenc | |
run: sudo pip3 install pylatexenc | |
- name: Run JSON converter (experimental) | |
run: python3 main.py | |
working-directory: parser | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: out.json | |
path: parser/out.json | |
- name: Compare output to target | |
run: python3 compare.py | |
working-directory: parser |