AWS Tests #79
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: AWS Tests | |
on: | |
schedule: | |
- cron: "0 16 * * 1" # Weekly at noon on Monday | |
workflow_dispatch: | |
concurrency: # Cancel previous workflows on the same pull request | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
RCLONE_DRIVE_ACCESS_TOKEN: ${{ secrets.RCLONE_DRIVE_ACCESS_TOKEN_CODY }} | |
RCLONE_DRIVE_REFRESH_TOKEN: ${{ secrets.RCLONE_DRIVE_REFRESH_TOKEN_CODY }} | |
RCLONE_EXPIRY_TOKEN: ${{ secrets.RCLONE_EXPIRY_TOKEN_CODY }} | |
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.12"] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: git fetch --prune --unshallow --tags | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Global Setup | |
run: | | |
python -m pip install -U pip # Official recommended way | |
git config --global user.email "[email protected]" | |
git config --global user.name "CI Almighty" | |
- name: Install AWS requirements | |
run: pip install .[aws,test] | |
# TODO: when passing, reverse order of tests from minimal to data | |
- name: Run subset of tests that use S3 live services | |
run: pytest -rsx -n auto tests/test_on_data/test_yaml/yaml_aws_tools_tests.py | |
- name: Run subset of tests that use S3 live services | |
run: pytest -rsx -n auto tests/test_minimal/test_tools/aws_tools_tests.py |