From 856a1178ad3cf869e6cfb47fc60ada271e7d587e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Fri, 16 Feb 2024 22:23:19 +0100 Subject: [PATCH] ci: test --- .github/workflows/data-pipeline.yml | 19 +++++++++++++++++++ ci/container/Containerfile | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/data-pipeline.yml diff --git a/.github/workflows/data-pipeline.yml b/.github/workflows/data-pipeline.yml new file mode 100644 index 00000000..908c55b4 --- /dev/null +++ b/.github/workflows/data-pipeline.yml @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: 2024 Jonah BrĂ¼chert +# SPDX-License-Identifier: CC0-1.0 + +name: Import data + +on: [push, pull_request] + +jobs: + import: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v3 + - name: Build docker images + run: docker build -t transitous . < ci/container/Containerfile + - name: Fetch GTFS-Feeds + run: docker run -it -v $PWD:/transitous -w /transitous transitous ci/fetch-feeds.py timer + - name: Generate MOTIS config file + run: docker run -it -v $PWD:/transitous -w /transitous transitous ci/generate-motis-config.py diff --git a/ci/container/Containerfile b/ci/container/Containerfile index c52b4b05..83aaa47f 100644 --- a/ci/container/Containerfile +++ b/ci/container/Containerfile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Jonah BrĂ¼chert +# SPDX-License-Identifier: CC0-1.0 + FROM docker.io/debian:bookworm-slim RUN apt-get update && apt-get install git python3-requests golang -y && apt clean