Merge pull request #123 from MeltanoLabs/fail_when_no_files_found #39
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 after a branch is merged into main. | |
name: Main-Test tap-universal-file | |
on: | |
push: | |
branches: [main] | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
env: | |
AWS_ACCESS_KEY_ID: AKIAZPOBIXUJJ434XT5T | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
TAP_UNIVERSAL_FILE_FILE_PATH: derek-tap-filetesting/2023 | |
TAP_UNIVERSAL_FILE_FILE_REGEX: ^.*airtravel\.csv$ | |
TAP_UNIVERSAL_FILE_PROTOCOL: s3 | |
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 | |
- name: Install dependencies | |
run: | | |
poetry install --extras=s3 | |
- name: Test with pytest (no secrets needed) | |
run: | # Runs all tests, including both non-S3 and S3. | |
poetry run pytest | |