-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.02 KB
/
pytest.yaml
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
name: Pytest
on:
push:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
max-parallel: 1
env: # Or as an environment variable
PROJECT: ${{ secrets.PROJECT }}
SOURCE_TABLE: ${{ secrets.SOURCE_TABLE }}
DESTINATION_TABLE: ${{ secrets.DESTINATION_TABLE }}
DATASET: ${{ secrets.DATASET }}
SA_JSON: ${{ secrets.SA_JSON }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f cloud_function/requirements.txt ]; then pip install -r cloud_function/requirements.txt; fi
python -m pip install pytest==7.4.3
python -m pip install python-dotenv==0.14.0
- name: Test with pytest
run: |
python -m pytest -vv