-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (41 loc) · 1.14 KB
/
python-test-3d.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Tests3D
on:
workflow_call:
inputs:
event_type:
required: true
type: string
action_type:
required: true
type: string
workflow_dispatch:
push:
branches: [main, dev]
paths-ignore:
- '.devcontainer/**'
- '.github/**'
paths:
- 'warmth/warmth3d/**'
pull_request:
types: [assigned]
paths:
- 'warmth/warmth3d/**'
jobs:
build:
environment: test3d
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run
uses: tj-actions/docker-run@v2
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' }}
uses: coroo/[email protected]
with:
pytest-coverage: pytest-coverage.txt