-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (39 loc) · 1.13 KB
/
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
### A CI workflow template that runs linting and python testing
name: Test tap-universal-file
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
workflow_dispatch:
inputs: {}
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_FILEPATH: derek-tap-filetesting/2023
TAP_UNIVERSAL_FILE_FILE_REGEX: ^airtravel\.csv$
TAP_UNIVERSAL_FILE_PROTOCOL: s3
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
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
run: |
poetry run pytest