diff --git a/.github/actions/job-dump/action.yml b/.github/actions/job-dump/action.yml index 3db0dca8..ad9174c7 100644 --- a/.github/actions/job-dump/action.yml +++ b/.github/actions/job-dump/action.yml @@ -31,7 +31,7 @@ runs: shell: bash - name: Upload pytest test results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: ${{ inputs.artifact-name }} path: meta.json diff --git a/.github/workflows/ci_compatible.yml b/.github/workflows/ci_compatible.yml index 69d075b7..a448c517 100644 --- a/.github/workflows/ci_compatible.yml +++ b/.github/workflows/ci_compatible.yml @@ -44,7 +44,7 @@ jobs: - run: echo "[]" > projects.json - name: Upload placeholder - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: compatibility-${{ github.sha }} path: projects.json @@ -81,31 +81,36 @@ jobs: matrix: ${{ fromJSON(needs.generator.outputs.matrix) }} steps: - name: Download 📥 summary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: compatibility-${{ github.sha }} - name: Download 📥 project - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 + id: download-project with: - name: project-${{ github.sha }}-${{ strategy.job-index }} + pattern: project-${{ github.sha }}-* - run: ls -l - name: append result run: | import json + import os with open("projects.json") as fp: data = json.load(fp) - with open("meta.json") as fp: - data.append(json.load(fp)) + for root, dirs, files in os.walk("${{ steps.download-project.outputs.download-path }}"): + if "meta.json" in files: + with open(root+"/meta.json") as fp: + data.append(json.load(fp)) with open("projects.json", "w") as fp: json.dump(data, fp) shell: python - name: Upload pytest test results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: compatibility-${{ github.sha }} path: projects.json + overwrite: true watcher: runs-on: ubuntu-latest @@ -129,7 +134,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Download 📥 summary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: compatibility-${{ github.sha }} - run: cat projects.json @@ -170,7 +175,7 @@ jobs: git config user.email github-actions@github.com git merge origin/main - name: Download 📥 summary - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: compatibility-${{ github.sha }} - name: Update results diff --git a/_actions/_config.yaml b/_actions/_config.yaml index d18f08a4..b9287362 100644 --- a/_actions/_config.yaml +++ b/_actions/_config.yaml @@ -40,7 +40,7 @@ dependencies: install_flags: - "--find-links https://download.pytorch.org/whl/cpu/torch_stable.html" - name: typing_extensions - checkout: 4.1.1 + checkout: 4.7.1 install_flags: "--use-pep517" # OPTIONAL, running before installing your project