SCP-8 updaded upload retry method #62
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
name: 'Studio PY SDK' | |
on: [push] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
env: | |
PY_SDK_STAGING_KEY: ${{ secrets.PY_SDK_STAGING_KEY }} | |
SKYLAB_API_URL: ${{ secrets.SKYLAB_API_URL }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Update system | |
run: sudo apt-get update | |
- name: Install libvips | |
run: sudo apt install libvips-dev --no-install-recommends | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -e . | |
- name: Run pytest | |
run: pytest -s test/test_api.py |