Skip to content

Commit

Permalink
Update morango integration tests to run when (in a pr) dependencies c…
Browse files Browse the repository at this point in the history
…hange or the workflow is altered
  • Loading branch information
rtibbles committed Jul 3, 2024
1 parent 823c00b commit 6d12a26
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/morongo_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,31 @@ name: Morango Integration Tests
on:
schedule:
- cron: '0 0 * * 0'
pull_request:
branches:
- develop
- release-*

jobs:
pre_job:
name: Path match check
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ github.token }}
paths: '["requirements/base.txt", ".github/workflows/morango_integration.yml"]'
morango_integration_tests_sqlite:
name: Morango Integration Tests
runs-on: ubuntu-latest
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-20.04
env:
INTEGRATION_TESTS: true
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11']
Expand Down Expand Up @@ -47,7 +67,11 @@ jobs:

morango_integration_tests_postgres:
name: Morango Integration Tests with PostgreSQL
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
env:
INTEGRATION_TESTS: true

services:
postgres:
Expand Down

0 comments on commit 6d12a26

Please sign in to comment.