From ed16464a63df79386007e1eaac7f3011608e042a Mon Sep 17 00:00:00 2001 From: David van Buiten Date: Wed, 31 Jan 2024 16:04:57 +0100 Subject: [PATCH] Added github workflow to run pytest --- .github/workflows/tests.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..2f6e6a4 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,18 @@ +name: Tests +on: [pull_request] + +jobs: + run_tests: + runs-on: ubuntu-latest + steps: + # https://github.com/actions/checkout + - uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and start containers + run: docker-compose up -d --build meldingen-core + + - name: Test migrations + run: docker-compose exec -T meldingen-core pytest -v