Skip to content

Commit f5a12d8

Browse files
committed
Migrate to Github Actions
1 parent 74c2900 commit f5a12d8

File tree

58 files changed

+2240
-710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2240
-710
lines changed

.github/config.template.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
###
2+
# This jobs.yml was generated by docker-etl/ci_config.py.
3+
# Changes should be made to templates and re-generated.
4+
###
5+
6+
name: ETL Jobs
7+
8+
on:
9+
push:
10+
branches:
11+
- '**'
12+
pull_request:
13+
14+
jobs:
15+
{{ jobs }}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build docker-etl
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
9+
jobs:
10+
build-docker-etl:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v6
15+
with:
16+
submodules: recursive
17+
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v3
20+
21+
- name: Build Docker image
22+
uses: docker/build-push-action@v6
23+
with:
24+
context: .
25+
tags: docker-etl:build
26+
load: true
27+
cache-from: type=gha
28+
cache-to: type=gha,mode=max
29+
30+
- name: Test Code
31+
run: |
32+
docker run docker-etl:build /bin/bash -c \
33+
"python -m pytest docker_etl/ tests/; \
34+
flake8 docker_etl/ tests/;\
35+
black docker_etl/ tests/"
36+
37+
- name: Verify jobs have required files
38+
run: docker run docker-etl:build script/verify_files
39+
40+
- name: Verify CI config is up-to-date
41+
run: docker run docker-etl:build python3 -m docker_etl.ci_config --dry-run --gha | diff -B .github/workflows/jobs.yml -

0 commit comments

Comments
 (0)