-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (41 loc) · 1.5 KB
/
s3_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
### A CI workflow template that makes use of repository secrets and therefore requires authorization.
name: S3-Test tap-universal-file
on:
pull_request_target:
types: [opened, synchronize, reopened]
jobs:
authorize:
environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true
pytest-s3:
needs: authorize
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 (requires repo secrets)
run: | # Only run S3 tests, i.e. those that weren't already covered by the standard workflow run.
poetry run pytest -k 'test_s3_execution'