From cbb79542cb2943f4cb1659509a6d5b864e7d66b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rickard=20Hallerb=C3=A4ck?= Date: Sat, 23 Dec 2023 19:12:39 +0100 Subject: [PATCH] Adding the advent of code test suite as a pipeline --- .github/workflows/tests.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8adedb3..ab7936a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,6 +54,22 @@ jobs: - id: running-pytest run: cd tests; pytest + test-advent-of-code-solutions: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v1 + - id: install-python-deps + run: pip3 install -r requirements.txt + - id: build-meson + run: mkdir install && meson builddir --prefix $(pwd)/install && cd builddir && ninja && ninja install + - id: clone-advent-of-code + run: git clone https://x-access-token:${{ secrets.PIPELINE_PAT }}@github.com/ricardicus/ric-script-advent-of-code.git && cp builddir/src/ric ric-script-advent-of-code/ric-script + - id: run-advenct-of-code-tests + run: cd ric-script-advent-of-code/tests && pytest + build-and-test-windows-dyn-lib: runs-on: ${{ matrix.os }}