Skip to content

Commit

Permalink
test -lR
Browse files Browse the repository at this point in the history
  • Loading branch information
alleeclark committed Dec 18, 2024
1 parent 383f21e commit f4db8b2
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci_compatible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,28 +74,25 @@ jobs:
steps:
- name: Download 📥 project
uses: actions/download-artifact@v4
id: download
with:
pattern: project-${{ github.sha }}-*
path: project-${{ github.sha }}
- run: echo "[]" > projects.json
- run: ls -l
- run: ls -lR
- name: append result
run: |
import json
import os
with open("projects.json") as fp:
data = json.load(fp)
with open("project-${{ github.sha }}/meta.json") as fp:
data.append(json.load(fp))
for root, dirs, files in os.walk("${{ steps.download.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 📥 project
uses: actions/upload-artifact@v4
with:
name: project-${{ github.sha }}-${{ strategy.job-index }}
path: project-${{ github.sha }}-*

- name: Upload pytest test results
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit f4db8b2

Please sign in to comment.