generated from palewire/python-open-source-template
-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (43 loc) · 1.32 KB
/
etl.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "Extract, transform and load"
on:
workflow_dispatch:
schedule:
- cron: "0 */12 * * *"
jobs:
etl:
name: ETL
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v3
- id: setup-python
name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pipenv'
- id: install-pipenv
name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
shell: bash
- id: install-python-dependencies
name: Install Python dependencies
run: pipenv install --dev --python=`which python`
shell: bash
- id: download
name: Download raw data
run: |
pipenv run python src/download.py satnogs
pipenv run python src/download.py je9pel
shell: bash
- id: commit
name: Commit
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git config pull.rebase false
git pull origin $GITHUB_REF
git add ./data
git commit -m "Added latest ETL" --author="palewire <palewire@users.noreply.github.com>" && git push || true
shell: bash