From f5aa975efd10462d766030779910ec0d1f1e2a74 Mon Sep 17 00:00:00 2001 From: Anis GHAOUI Date: Sun, 24 Nov 2024 13:42:46 +0100 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 44 ++------------------------------ 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 68b3193..5898b07 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -23,47 +23,7 @@ jobs: mods=$(cat mod_list.txt | jq -R -s -c 'split("\n") | map(select(. != ""))') echo "Parsed mods: $mods" echo "::set-output name=mods::$mods" - - test-mods: - needs: read-mod-list - runs-on: ubuntu-latest - strategy: - matrix: - mod: ${{ fromJson(needs.read-mod-list.outputs.mods) }} - steps: - # Checkout the repo - - name: Checkout Code - uses: actions/checkout@v3 - - # Set up Python environment - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - # Install dependencies - - name: Install Dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - # Test each mod - - name: Test Mod - run: | - python your_script.py --mod-name ${{ matrix.mod }} - steps: - # Checkout the repo to access mod_list.txt - - name: Checkout Code - uses: actions/checkout@v3 - - # Read the mod_list.txt and convert to JSON - - name: Parse Mod List - id: get-mods - run: | - mods=$(cat mod_list.txt | jq -R -s -c 'split("\n") | map(select(. != ""))') - echo "Parsed mods: $mods" - echo "::set-output name=mods::$mods" - + test-mods: needs: read-mod-list runs-on: ubuntu-latest @@ -79,7 +39,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.x' # Replace with your required version + python-version: '3.8' # Install dependencies - name: Install Dependencies