-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1018 Bytes
/
Copy pathpython-etl-tests.yml
File metadata and controls
42 lines (34 loc) · 1018 Bytes
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
name: Banking Data Pipeline — Tests
on:
push:
branches:
- main
workflow_dispatch:
jobs:
run-tests:
name: Pytest (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
cd banking_data_pipeline_python
pip install -r requirements.txt
pip install -e .
- name: Run pytest
run: |
cd banking_data_pipeline_python
pytest --maxfail=1 --disable-warnings -q | tee pytest_output.txt
- name: Upload pytest results
uses: actions/upload-artifact@v7
with:
name: etl-pytest-results-${{ matrix.python-version }}
path: banking_data_pipeline_python/pytest_output.txt