Update repo

This commit is contained in:
Hang Cui
2025-10-17 16:15:20 -07:00
parent 04a26b5a4a
commit 51213a40c8

View File

@@ -20,15 +20,17 @@ jobs:
- name: Run unit tests - name: Run unit tests
run: | run: |
cd backend cd backend
apt install zip
COVERAGE_FILE=.coverage tox -e unit COVERAGE_FILE=.coverage tox -e unit
ls -la ${{ github.workspace }}/backend ls -la ${{ github.workspace }}/backend
stat ./.coverage stat ./.coverage
zip coverage.zip ./.coverage
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: build-coverage name: build-coverage
path: ${{ github.workspace }}/backend/main.py path: ${{ github.workspace }}/backend/coverage.zip
if-no-files-found: error if-no-files-found: error
load-file-example: load-file-example:
@@ -42,4 +44,8 @@ jobs:
path: ${{ github.workspace }} # Move the coverage to ${{ github.workspace }} path: ${{ github.workspace }} # Move the coverage to ${{ github.workspace }}
- name: List folder - name: List folder
run: ls -la ${{ github.workspace }} run: |
ls -la ${{ github.workspace }}
unzip coverage.zip
ls -la ${{ github.workspace }}