Skip to content

Commit f4faf8b

Browse files
committed
ci: env
1 parent a33bdaa commit f4faf8b

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

.env

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
GITCODE_BASE_URL=
2-
GITCODE_PERSONAL_OWNER=
3-
GITCODE_PERSONAL_ACCESS_TOKEN=
1+
GITCODE_BASE_URL="https://api.gitcode.com/api/v5"
2+
GITCODE_PERSONAL_OWNER=""
3+
GITCODE_PERSONAL_ACCESS_TOKEN=""

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- master
77

8+
env:
9+
GITCODE_BASE_URL: "https://api.gitcode.com/api/v5"
10+
GITCODE_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITCODE_PERSONAL_ACCESS_TOKEN }}
11+
GITCODE_PERSONAL_OWNER: "chaocw"
12+
813
jobs:
914
test:
1015
runs-on: ubuntu-latest
@@ -24,10 +29,6 @@ jobs:
2429

2530
- name: Run tests
2631
run: uv run pytest tests --alluredir=allure-results
27-
env:
28-
GITCODE_BASE_URL: ${{ env.GITCODE_BASE_URL }}
29-
GITCODE_PERSONAL_ACCESS_TOKEN: ${{ env.GITCODE_PERSONAL_ACCESS_TOKEN }}
30-
GITCODE_PERSONAL_OWNER: ${{ env.GITCODE_PERSONAL_OWNER }}
3132

3233
- name: Load test report history
3334
uses: actions/checkout@v3

0 commit comments

Comments
 (0)