Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
anisghaoui committed Nov 24, 2024
2 parents a676d77 + 0ecde4c commit 12938a5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches:
- main
pull_request:
schedule:
- cron: '0 20 * * 5' # Triggers every Friday at 20:00 UTC

jobs:
read-mod-list:
Expand All @@ -22,7 +24,9 @@ jobs:
run: |
mods=$(cat mod_list.txt | jq -R -s -c 'split("\n") | map(select(. != ""))')
echo "Parsed mods: $mods"
echo "::set-output name=mods::$mods"
echo "{mods}={$mods}" >> $GITHUB_OUTPUT
# echo "::set-output name=mods::$mods"


test-mods:
needs: read-mod-list
Expand Down Expand Up @@ -50,4 +54,12 @@ jobs:
# Test each mod
- name: Test Mod
run: |
python mod_translate_track.py --mod-name ${{ matrix.mod }}
ls
python mod_translate_track.py ${{ matrix.mod }} ${{ github.repository }}.${{ env.LANGUAGE }}
# Collect artifacts from the output/ directory
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: output-${{ matrix.mod }}
path: output/${{ matrix.mod }}/*
5 changes: 2 additions & 3 deletions requirement.txt → requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
re
regex
requests
pathlib
os
argparse
configparser
configparser

0 comments on commit 12938a5

Please sign in to comment.