From da8d129ebde4c38eae4099b6d23539fd996b763b Mon Sep 17 00:00:00 2001 From: Jakob Miksch Date: Sun, 7 Jul 2024 14:18:22 +0200 Subject: [PATCH] CI: add unit test without Postgres dependency --- .github/workflows/tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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 00000000..e7671685 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,22 @@ +name: Tests + +on: + push: + branches: [ main ] + pull_request: + +jobs: + run_tests: + runs-on: ubuntu-latest + container: + image: qgis/qgis:3.34 + steps: + - uses: actions/checkout@v4 + - name: install system dependencies + run: apt update && apt install -y python3-poetry python3-flask python3-boto3 + - name: Install Python dependencies + working-directory: qsa-api + run: poetry install + - name: Run test without Postgres Dependency + working-directory: qsa-api + run: pytest -sv tests/test_api_storage_filesystem.py