feat: Sometimes we don't want to fail when there's no files found #163
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
### A CI workflow that runs linting and python testing | |
name: Test tap-universal-file | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
env: | |
AWS_ACCESS_KEY_ID: NoSecretsNeeded | |
AWS_SECRET_ACCESS_KEY: NoSecretsNeeded | |
TAP_UNIVERSAL_FILE_PROTOCOL: file | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
env: | |
PIP_CONSTRAINT: .github/workflows/constraints.txt | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
pip install setuptools | |
- name: Install dependencies | |
run: | | |
poetry install --extras=s3 | |
- name: Test with pytest (no secrets needed) | |
run: | # Only run non-S3 tests, i.e. those that don't require repository secrets. | |
poetry run pytest -k 'not test_s3_execution' | |