From 54ca65fa22062ecc53fe9a2cf672dbcc683466df Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 22 Feb 2024 17:33:01 -0800 Subject: [PATCH] fix: get user --- .github/workflows/main.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8c63083..6067766 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,23 +7,32 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4.1.1 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.10 + - name: Run script + run: | + python -c 'import os; os.getlogin()' - name: Install dependencies run: npm install - name: Lint run: npm run lint - name: Run tests and collect coverage run: npm run test - - name: Upload coverage to Codecov (script) + - name: Upload coverage to Codecov (v3) uses: codecov/codecov-action@v3 with: + fail_ci_if_error: true files: ./coverage/script/coverage-final.json flags: script,${{ matrix.os }} name: codecov-script verbose: true token: ${{ secrets.CODECOV_TOKEN }} - - name: Upload coverage to Codecov (script) + - name: Upload coverage to Codecov (latest) uses: ./ with: + fail_ci_if_error: true files: ./coverage/script/coverage-final.json flags: script,${{ matrix.os }} name: codecov-script