-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fad00e
commit aba3c02
Showing
2 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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,11 +134,13 @@ 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 | ||
|
||
- run: ls -lR | ||
|
||
- name: Prepare Slack payload | ||
run: | | ||
pip install -q -r requirements.txt | ||
|
@@ -170,7 +177,7 @@ jobs: | |
git config user.email [email protected] | ||
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 | ||
|