CI: try another workaround

This commit is contained in:
Louis Gesbert 2024-07-04 18:02:01 +02:00
parent 3fafcb3782
commit 773fe0a956

View File

@ -99,11 +99,8 @@ jobs:
run: |
cd /home/ocaml/catala
opam exec -- clerk report --xml _build/*@test _build/test-*/*@test >report.junit.xml
- name: Workaround Github stuff # https://github.com/actions/checkout/issues/1014
if: ${{ always() }}
run: sudo chmod +w -R /__w
- name: Test Summary
uses: test-summary/action@v2
uses: test-summary/action@v1
with:
paths: /home/ocaml/catala/report.junit.xml
if: ${{ always() }}
@ -149,11 +146,8 @@ jobs:
run: |
cd ~/catala-examples
opam exec -- clerk report --xml _build/*@test _build/test-*/*@test >report.junit.xml
- name: Workaround Github stuff # https://github.com/actions/checkout/issues/1014
if: ${{ always() }}
run: sudo chmod +w -R /__w
- name: Test Summary
uses: test-summary/action@v2
uses: test-summary/action@v1
with:
paths: /home/ocaml/catala-examples/report.junit.xml
if: ${{ always() }}
@ -193,7 +187,12 @@ jobs:
cp catala-examples/_build/french_law_python.tar.gz artifacts/
mv catala/website-assets.tar.gz artifacts/
- name: Upload artifacts
uses: actions/upload-artifact@v4
# See the following to switch to a later upload-artifact version:
# continue-on-error: true
# Uploading artifacts works but then return failure with:
# EACCES: permission denied, open '/__w/_temp/_runner_file_commands/set_output_xxx'
# a chmod doesn't work around it so we resort to just ignoring the error...
uses: actions/upload-artifact@v2
with:
name: Catala examples
path: /home/ocaml/artifacts/*