From 3ae121e1991a2acfedc72430c94866bb42c0fda2 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 | 21 +++++++++++++++++++++ ci/container/Containerfile | 3 +++ 2 files changed, 24 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..521261da --- /dev/null +++ b/.github/workflows/data-pipeline.yml @@ -0,0 +1,21 @@ +# 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: Fetch submodules + run: git submodule update --init --checkout --remote + - name: Build docker images + run: docker build -t transitous . -f ci/container/Containerfile + - name: Fetch GTFS-Feeds + run: docker run -v $PWD:/transitous -w /transitous transitous ci/fetch-feeds.py timer + - name: Generate MOTIS config file + run: docker run -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