Skip to content

Commit

Permalink
Use secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Oct 25, 2024
1 parent a6d237e commit b6503ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
OSS_ACCESS_KEY_ID: ${{ secrets.OSS_ACCESS_KEY_ID }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID }}
OSS_BUCKET: ${{ vars.OSS_BUCKET }}
OSS_REGION: ${{ vars.OSS_REGION }}
S3_BUCKET: ${{ vars.S3_BUCKET }}
S3_REGION: ${{ vars.S3_REGION }}
OSS_BUCKET: ${{ secrets.OSS_BUCKET }}
OSS_REGION: ${{ secrets.OSS_REGION }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
S3_REGION: ${{ secrets.S3_REGION }}

steps:
- uses: actions/checkout@v1
Expand Down
10 changes: 5 additions & 5 deletions tests/test_objwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def read_and_write_client(client):
objs = client.list_objs()
num = 0
for obj in objs:
assert obj[0] == '0e37678b-b0f2-4842-b671-207634c8c0af' or obj[0] == 'b999b39d-2749-44c9-a6b5-982b8bfb7a75'
num += 1
if obj[0] == '0e37678b-b0f2-4842-b671-207634c8c0af' or obj[0] == 'b999b39d-2749-44c9-a6b5-982b8bfb7a75':
num += 1
assert num == 3

objs = client.list_objs('0e37678b-b0f2-4842-b671-207634c8c0af')
Expand All @@ -40,11 +40,11 @@ def read_and_write_client(client):
num += 1
assert num == 1

raw = client.read_object_content(key1)
raw = client.read_obj_raw (key1)
assert raw == data1
raw = client.read_object_content(key2)
raw = client.read_obj_raw (key2)
assert raw == data2
raw = client.read_object_content(key3)
raw = client.read_obj_raw (key3)
assert raw == data3

client.remove_obj(key1)
Expand Down

0 comments on commit b6503ea

Please sign in to comment.