Skip to content

Commit

Permalink
TST: CI trigger update
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchengtkc committed Nov 22, 2023
1 parent c4ca939 commit 5df8c48
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/python-test-3d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
name: Tests3D

on:
workflow_dispatch:
workflow_call:
inputs:
event_type:
Expand All @@ -13,6 +12,15 @@ on:
action_type:
required: true
type: string
workflow_dispatch:
push:
branches: [main, dev]
paths:
- 'warmth/warmth3d/**'
pull_request:
branches: [main, dev]
paths:
- 'warmth/warmth3d/**'
jobs:
build:
environment: test3d
Expand All @@ -21,25 +29,16 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: check_3d_modified
uses: dorny/paths-filter@v2
id: filter3d
with:
filters: |
mesh3d:
- 'warmth/warmth3d/**'
- name: Run
uses: tj-actions/docker-run@v2
if: ${{ steps.filter3d.outputs.mesh3d }} == 'true'

with:
image: ghcr.io/equinor/warmth:latest
name: dolfinx
options: -v ${{ github.workspace }}:/home/warmth


- name: Comment coverage
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' && steps.filter3d.outputs.mesh3d == 'true' }}
if: ${{ github.event_name == 'pull_request' && github.event.action == 'opened' }}
uses: coroo/[email protected]
with:
pytest-coverage: pytest-coverage.txt
7 changes: 0 additions & 7 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,3 @@ jobs:
uses: coroo/[email protected]
with:
pytest-coverage: pytest-coverage.txt


test3d:
uses: equinor/warmth/.github/workflows/python-test-3d.yml@main
with:
event_type: ${{ github.event_name}}
action_type: ${{ github.event.action}}

0 comments on commit 5df8c48

Please sign in to comment.