Skip to content

add tests for prediction API (#19) #139

add tests for prediction API (#19)

add tests for prediction API (#19) #139

Workflow file for this run

name: ci
on:
push:
branches:
- develop
pull_request:
branches:
- develop
concurrency:
group: ci-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
style: ${{ steps.filter.outputs.style }}
unit-tests: ${{ steps.filter.outputs.unit-tests }}
container: ${{ steps.filter.outputs.container }}
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # @v2
if: ${{ github.event_name == 'push' }}
with:
fetch-depth: 0
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
id: filter
with:
filters: |
style:
- '.github/**'
- 'gantry/**'
- 'pyproject.toml'
unit-tests:
- '.github/**'
- 'gantry/**'
- 'pyproject.toml'
container:
- '.github/workflows/**'
- 'gantry/**'
- 'pyproject.toml'
style:
if: ${{ needs.changes.outputs.style == 'true' }}
needs: changes
uses: ./.github/workflows/style.yml
unit-tests:
if: ${{ needs.changes.outputs.unit-tests == 'true' }}
needs: [changes, style]
uses: ./.github/workflows/unit-tests.yml
container:
if: ${{ needs.changes.outputs.container == 'true' }}
needs: [changes, style, unit-tests]
uses: ./.github/workflows/container.yml