add upload step
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Gitea Actions Demo / verify-artifact-upload (push) Failing after 2m4s

This commit is contained in:
Paco Hope
2026-08-16 13:03:53 -04:00
parent d9505db592
commit 13b8e2df34
+37
View File
@@ -17,3 +17,40 @@ jobs:
run: | run: |
ls ${{ gitea.workspace }} ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}." - run: echo "🍏 This job's status is ${{ job.status }}."
verify-artifact-upload:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Check out repository
uses: https://gitea.com/actions/checkout@v4
with:
github-server-url: https://git.nova.org
- name: Create Python environment
run: |
python3 -m venv .venv
- name: Diagnostic -- guarantee real content in test-results/
# Runs regardless of earlier step outcomes, so the upload step
# below always has something real to upload. Isolates whether
# gitea-upload-artifact itself works from whether the pytest step
# (or an earlier setup step) is what's actually failing.
if: always()
run: |
mkdir -p test-results
echo "diagnostic content $(date -u)" > test-results/diagnostic.txt
- name: Run the intentionally-failing verification test
run: |
.venv/bin/python -m pytest tests/test_zz_temp_verify_artifact_upload.py \
--tracing=retain-on-failure \
--screenshot=only-on-failure
- name: Upload failure artifacts
if: failure()
uses: https://gitea.com/actions/gitea-upload-artifact@v4
with:
name: test-results
path: test-results/
retention-days: 1