Skip to content

Commit

Permalink
update pipelines, add pytest
Browse files Browse the repository at this point in the history
Signed-off-by: brotholomew <[email protected]>
  • Loading branch information
Brotholomew committed Apr 22, 2024
1 parent 1d028aa commit 080e828
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/backend_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
paths:
- 'backend/**'
- '.github/workflows/backend_ci.yml'
pull_request:
paths:
- 'backend/**'
- '.github/workflows/backend_ci.yml'


jobs:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/frontend_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,3 @@ jobs:
frontend/vue-gewoscout/test-results/*.xml
- name: TearDown docker compose
run: docker-compose down --remove-orphans



25 changes: 25 additions & 0 deletions .github/workflows/scrapers_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Scrapers CI

on:
push:
paths:
- 'scrapers/**'
- '.github/workflows/scrapers_ci.yml'
pull_request:
paths:
- 'scrapers/**'
- '.github/workflows/scrapers_ci.yml'

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: scrapers
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
- name: pip install
run: pip install -r requirements.txt
- name: run pytest
run: pytest
4 changes: 0 additions & 4 deletions .github/workflows/tf_apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
required: false
default: '0'

push:
branches: [ "main", "release**" ]
paths: ["infra/**", ".github/**"]

permissions:
contents: read

Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@
*.zip
/infra/.terraform/
/infra/.terraform.lock.hcl
/infra/env.sh
/infra/env.ps1

.pytest_cache
__pycache__
3 changes: 2 additions & 1 deletion scrapers/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
# The Python Worker is managed by the Azure Functions platform
# Manually managing azure-functions-worker may cause unexpected issues

azure-functions
azure-functions
pytest
4 changes: 4 additions & 0 deletions scrapers/test/test_dummy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import pytest

def test_dummy():
assert True

0 comments on commit 080e828

Please sign in to comment.