-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 955 Bytes
/
tests.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
name: tests
on:
workflow_call:
workflow_dispatch:
pull_request:
branches: [ main ]
types: [opened, synchronize, reopened, ready_for_review]
jobs:
fail-if-pull-request-is-draft:
if: github.event.pull_request.draft == true
runs-on: ubuntu-latest
steps:
- name: Fails in order to indicate that pull request needs to be marked as ready to review and unit tests workflow needs to pass.
run: exit 1
test:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
container: riedmiki/gromacs-plumed-python:2023.5-plumed
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
- name: run tox
run: tox
- name: zip coverage report
if: ${{ !cancelled() }}
run: zip -r htmlcov.zip htmlcov || true
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: coverage artifact
path: htmlcov.zip