-
-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (40 loc) · 1006 Bytes
/
pipeline.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
45
46
47
48
49
name: Pipeline CI/CD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Setup directory structure
run: |
mkdir -p data/Load data/Processed
chmod -R 777 data # Ensure write permissions
- name: Run tests
run: |
pytest tests/
env:
DATA_DIR: ${{ github.workspace }}/data
- name: Run pipeline
run: |
python main.py
env:
DATA_DIR: ${{ github.workspace }}/data
- name: Archive data artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: pipeline-data
path: data/
retention-days: 5