github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/.github/workflows/test-python.yml (about)

     1  name: python/aistore
     2  on:
     3    push:
     4      branches:
     5        - main
     6    pull_request:
     7    workflow_dispatch:
     8  
     9  jobs:
    10    build:
    11      strategy:
    12        matrix:
    13          go-version: ['1.22.x']
    14          os: [ubuntu-latest, macos-latest]
    15          python-version: ['3.11']
    16      runs-on: ${{ matrix.os }}
    17      steps:
    18        - name: Install Go
    19          uses: actions/setup-go@v4
    20          with:
    21            go-version: ${{ matrix.go-version }}
    22  
    23        - name: Checkout code
    24          uses: actions/checkout@v4
    25  
    26        - name: Setup additional system libraries
    27          if: startsWith(matrix.os, 'ubuntu')
    28          run: |
    29            sudo apt update
    30            sudo apt install -y xattr attr
    31  
    32        - name: Run AIStore
    33          run: |
    34            export GOPATH="$(go env GOPATH)"
    35            scripts/clean_deploy.sh --target-cnt 1 --proxy-cnt 1 --mountpath-cnt 1
    36  
    37        - name: Setup Python ${{ matrix.python-version }}
    38          uses: actions/setup-python@v4
    39          with:
    40            python-version: ${{ matrix.python-version }}
    41  
    42        - name: Run python tests
    43          run: |
    44            cd python
    45            make python_sdk_tests
    46            make python_botocore_tests