From 721870f6558c13b184fe857e63f9f6b4bf057e0e 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 | 6 +++--- 2 files changed, 24 insertions(+), 3 deletions(-) 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..5c8a101f --- /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 -e PYTHONPATH=src ci/generate-motis-config.py diff --git a/ci/container/Containerfile b/ci/container/Containerfile index c52b4b05..7bfb8f8d 100644 --- a/ci/container/Containerfile +++ b/ci/container/Containerfile @@ -1,9 +1,9 @@ +# 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 ADD https://github.com/motis-project/motis/releases/download/v0.11.18/motis-linux-amd64.tar.bz2 /opt/ RUN GOBIN=/usr/local/bin/ go install github.com/patrickbr/gtfstidy@latest - -RUN adduser motis -USER motis