-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Abhishek Gaikwad <[email protected]>
- Loading branch information
1 parent
8f33765
commit 080809d
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Python AuthN Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
go-version: ['1.22.x'] | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: ['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: Setup additional system libraries | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
sudo apt update | ||
sudo apt install -y xattr attr | ||
- 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)" | ||
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 |