-
Notifications
You must be signed in to change notification settings - Fork 45
100 lines (98 loc) · 3.2 KB
/
test.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Test micromamba docker image
on:
pull_request:
branches:
- main
- dev
workflow_dispatch:
jobs:
default_base_image_tests:
name: default base_image tests
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: recursive
- name: Install GNU parallel and apptainer
run: |
sudo apt-get install --no-install-recommends -y parallel software-properties-common
sudo add-apt-repository -y ppa:apptainer/ppa
sudo apt update
sudo apt install -y apptainer
- name: Setup nox
uses: wntrblm/nox@1199ab3892b1a941f80ff052083d0a571abed79d
- name: Run tests
run: nox -s "default_base_image_tests"
shellcheck:
name: shellcheck
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install curl and xz-utils
run: sudo apt-get install --no-install-recommends -y curl xz-utils
- name: Install shellcheck
run: curl --location --silent https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz | tar xJ --strip-components=1 -C . shellcheck-stable/shellcheck
- name: Run tests
run: ./shellcheck -x *.sh test/*.bats
pylint:
name: pylint
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup nox
uses: wntrblm/nox@1199ab3892b1a941f80ff052083d0a571abed79d
- name: Run tests
run: nox -s "pylint"
flake8:
name: flake8
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup nox
uses: wntrblm/nox@1199ab3892b1a941f80ff052083d0a571abed79d
- name: Run tests
run: nox -s "flake8"
mypy:
name: mypy
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup nox
uses: wntrblm/nox@1199ab3892b1a941f80ff052083d0a571abed79d
- name: Run tests
run: nox -s "mypy"
black:
name: black
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup nox
uses: wntrblm/nox@1199ab3892b1a941f80ff052083d0a571abed79d
- name: Run tests
run: nox -s "black"
pytest:
name: pytest
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup nox
uses: wntrblm/nox@1199ab3892b1a941f80ff052083d0a571abed79d
- name: Run tests
run: nox -s "pytest"
build_docs:
name: build_docs
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup nox
uses: wntrblm/nox@1199ab3892b1a941f80ff052083d0a571abed79d
- name: Run tests
run: nox -s "build_docs"