Live service testing #247
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: Live service testing | |
on: | |
schedule: | |
- cron: "0 16 * * *" # Daily at noon EST | |
workflow_call: | |
secrets: | |
DANDI_API_KEY: | |
required: true | |
env: | |
DANDI_API_KEY: ${{ secrets.DANDI_API_KEY }} | |
jobs: | |
run: | |
name: ${{ matrix.os }} Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- uses: s-weigand/setup-conda@v1 | |
- uses: actions/checkout@v3 | |
- run: git fetch --prune --unshallow --tags | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Global Setup | |
run: | | |
python -m pip install -U pip # Official recommended way | |
pip install pytest-xdist | |
git config --global user.email "CI@example.com" | |
git config --global user.name "CI Almighty" | |
pip install wheel # Needed for scan image | |
- name: Install full requirements (-e needed for codecov report) | |
run: pip install -e .[full] | |
- name: Run subset of tests that use S3 live services | |
run: pytest -rsx -n auto tests/test_minimal/test_tools/s3_tools.py | |
- name: Run subset of tests that use DANDI live services | |
run: pytest -rsx -n auto tests/test_minimal/test_tools/dandi_transfer_tools.py | |
- name: Run subset of tests that use Globus live services | |
run: pytest -rsx -n auto tests/test_minimal/test_tools/globus_transfer_tools.py |