-
Notifications
You must be signed in to change notification settings - Fork 175
58 lines (52 loc) · 1.63 KB
/
test-python-authn.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Python AuthN Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
strategy:
matrix:
go-version: ['1.23.x']
os: [ubuntu-latest, macos-latest]
python-version: ['3.8','3.9','3.10','3.11']
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Remove unnecessary directories to free up space
run: |
sudo rm -rf /usr/local/.ghcup
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo rm -rf /usr/local/lib/android/sdk/ndk
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
- name: Run AIStore
env:
GOPATH: ${{ secrets.GOPATH }}
AIS_AUTHN_ENABLED: "true"
AIS_AUTHN_SU_NAME: "admin"
AIS_AUTHN_SU_PASS: "admin"
AIS_AUTHN_URL: "http://localhost:52001"
run: |
export GOPATH="$(go env GOPATH)"
AIS_SPACE_LOWWM=90 AIS_SPACE_HIGHWM=96 AIS_SPACE_OOS=99 scripts/clean_deploy.sh --target-cnt 3 --proxy-cnt 1 --mountpath-cnt 3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run Python tests
env:
AIS_AUTHN_SU_NAME: "admin"
AIS_AUTHN_SU_PASS: "admin"
AIS_AUTHN_URL: "http://localhost:52001"
run: |
cd python
make python_authn_tests