From 2c67bb485a6b80a9ebe9133b220ff9783881ad00 Mon Sep 17 00:00:00 2001 From: Zuri Klaschka Date: Sat, 14 Dec 2024 18:33:42 +0100 Subject: [PATCH] Adjust CI workflow --- .github/workflows/backend-go-ci.yml | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/.github/workflows/backend-go-ci.yml b/.github/workflows/backend-go-ci.yml index cd6d08ea..b9325c87 100644 --- a/.github/workflows/backend-go-ci.yml +++ b/.github/workflows/backend-go-ci.yml @@ -1,33 +1,22 @@ name: Backend Go CI -# Events that trigger this workflow -on: [ push, pull_request ] +on: [push, pull_request] defaults: run: working-directory: ./backend-go jobs: - style: - name: Style - runs-on: ubuntu-latest - steps: - - name: Checkout ๐Ÿ“ฅ - uses: actions/checkout@v3.6.0 - - name: Check style ๐Ÿงฝ - run: docker compose --file docker-compose.ci.yml --profile style up --abort-on-container-exit - - name: Stop containers ๐Ÿ›‘ - if: always() - run: docker compose --file docker-compose.ci.yml --profile style down - test: name: Test runs-on: ubuntu-latest steps: - name: Checkout ๐Ÿ“ฅ uses: actions/checkout@v3.6.0 - - name: Run tests ๐Ÿ›ƒ - run: docker compose --file docker-compose.ci.yml --profile test up --abort-on-container-exit - - name: Stop containers ๐Ÿ›‘ - if: always() - run: docker compose --file docker-compose.ci.yml --profile test down + - name: Setup Virtual Environment ๐Ÿ› ๏ธ + run: |- + ../backend-features/tools/setup-venv.sh + - name: Run Tests ๐Ÿงช + run: |- + . ../backend-features/.venv/bin/activate + ../backend-features/run-tests.py -v .