From 37706c2da56b43d7d7ed1fd307f3387485402260 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Tue, 12 Mar 2024 11:21:11 +0000 Subject: [PATCH] Setup GitHub Actions --- .github/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..30387c0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,17 @@ +name: Test +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Start Docker compose + run: | + docker-compose up -d + sleep 10 + - name: Run Tests + run: | + docker-compose exec app pytest tests/ -v