hblim commited on
Commit
8626441
·
1 Parent(s): 30dd29c

separated CI and ETL workflows

Browse files
.github/workflows/ci.yml ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Check out code
14
+ uses: actions/checkout@v3
15
+
16
+ - name: Set up Python 3.12
17
+ uses: actions/setup-python@v4
18
+ with:
19
+ python-version: "3.12"
20
+
21
+ - name: Cache pip
22
+ uses: actions/cache@v3
23
+ with:
24
+ path: ~/.cache/pip
25
+ key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
26
+ restore-keys: |
27
+ ${{ runner.os }}-pip-
28
+
29
+ - name: Install dependencies
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ pip install -r requirements-dev.txt
33
+
34
+ - name: Run unit tests
35
+ run: pytest --maxfail=1 --disable-warnings -q
.github/workflows/daily.yml CHANGED
@@ -2,15 +2,13 @@
2
  name: Daily ETL & CI
3
 
4
  on:
5
- push:
6
- branches: [main]
7
  workflow_dispatch:
8
  schedule:
9
  - cron: '0 23 * * *'
10
 
11
  jobs:
12
  build:
13
- # This is the GitHub‑hosted runners OS.
14
  # You can change to macos-latest if you really need a macOS VM,
15
  # but ubuntu-latest is faster and usually all you need.
16
  runs-on: ubuntu-latest
@@ -46,9 +44,6 @@ jobs:
46
  python -m pip install --upgrade pip
47
  pip install -r requirements-dev.txt
48
 
49
- - name: Run unit tests
50
- run: pytest --maxfail=1 --disable-warnings -q
51
-
52
  - name: Compute DATE (UTC)
53
  id: set-date
54
  run: echo "DATE=$(date -u +'%Y-%m-%d')" >> $GITHUB_ENV
 
2
  name: Daily ETL & CI
3
 
4
  on:
 
 
5
  workflow_dispatch:
6
  schedule:
7
  - cron: '0 23 * * *'
8
 
9
  jobs:
10
  build:
11
+ # This is the GitHub‑hosted runner's OS.
12
  # You can change to macos-latest if you really need a macOS VM,
13
  # but ubuntu-latest is faster and usually all you need.
14
  runs-on: ubuntu-latest
 
44
  python -m pip install --upgrade pip
45
  pip install -r requirements-dev.txt
46
 
 
 
 
47
  - name: Compute DATE (UTC)
48
  id: set-date
49
  run: echo "DATE=$(date -u +'%Y-%m-%d')" >> $GITHUB_ENV