garance referentiel #18
This file contains hidden or 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: garance referentiel | |
| on: [workflow_dispatch] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Get all resources | |
| - uses: actions/checkout@v3 | |
| with: | |
| repository: ArchivesNationalesFR/Referentiels | |
| path: Referentiels | |
| ref: version_2 | |
| - name: test | |
| run: | | |
| pwd Referentiels | |
| ls -l /home/runner/work/garance/garance/Referentiels | |
| # Python | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r scripts/python/requirements.txt | |
| - name: Convert | |
| run: | | |
| python scripts/python/convertToJson.py --generate READ --input /home/runner/work/garance/garance/Referentiels --context src/_data/context.json --output src/_data/garance_python.json |