Skip to content

Commit

Permalink
CI: add unit test without Postgres dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobMiksch committed Jul 7, 2024
1 parent 212f0c1 commit 72b178f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build-docs:
if: false # TODO: remove
name: Build Docs
runs-on: ubuntu-latest
steps:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 72b178f

Please sign in to comment.