From 4d30f024a48ad303dc94bc38933847d33a38189e Mon Sep 17 00:00:00 2001 From: Hang Cui Date: Fri, 17 Oct 2025 14:07:12 -0700 Subject: [PATCH] Update workflows *.yaml --- .gitea/workflows/006_passing_files.yaml | 43 +++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .gitea/workflows/006_passing_files.yaml diff --git a/.gitea/workflows/006_passing_files.yaml b/.gitea/workflows/006_passing_files.yaml new file mode 100644 index 0000000..8ea0ebc --- /dev/null +++ b/.gitea/workflows/006_passing_files.yaml @@ -0,0 +1,43 @@ +name: Passing Files In Artifacts + +on: + workflow_dispatch: + +jobs: + unit-tests: + runs-on: ubuntu-22.04 + steps: + - name: Checkout source code + uses: actions/checkout@v4 + + - name: Install Python 3.10 # Setup Python inside the runner + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install tox # Tool used for Python unit tests + run: pip install tox + - name: Run unit tests + run: | + cd backend + tox -e unit + ls -la ${{ github.workspace }}/backend + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: coverage + path: ${{ github.workspace }}/backend/.coverage + + load-file-example: + runs-on: ubuntu-22.04 + needs: [unit-tests] + steps: + - name: Download artifact + uses: actions/download-artifact@v3 + with: + name: coverage + path: ${{ github.workspace }} # Move the coverage to ${{ github.workspace }} + + - name: List folder + run: ls -la ${{ github.workspace }}