-
Notifications
You must be signed in to change notification settings - Fork 88
109 lines (88 loc) · 2.25 KB
/
scheduled.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
101
102
103
104
105
106
107
108
109
# Note that this file intentionally uses no cache, see
# https://github.com/metoppv/improver/pull/1651#issue-1108889073
name: Scheduled Tests
on:
schedule:
- cron: '7 4 * * *'
workflow_dispatch:
jobs:
Sphinx-Pytest-Coverage:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
env: [latest]
if: github.repository_owner == 'metoppv'
steps:
- uses: actions/checkout@v4
- name: Environment creation
uses: mamba-org/setup-micromamba@v2
with:
environment-file: envs/${{ matrix.env }}.yml
init-shell: bash
cache-environment: true
- name: Environment info
run: |
micromamba info
micromamba list
shell: bash -el {0}
- name: sphinx documentation
run: |
make -C doc html SPHINXOPTS="-W --keep-going"
shell: micromamba-shell {0}
- name: pytest without coverage
run: |
pytest
shell: micromamba-shell {0}
Safety-Bandit:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
env: [latest]
if: github.repository_owner == 'metoppv'
steps:
- uses: actions/checkout@v4
- name: Environment creation
uses: mamba-org/setup-micromamba@v2
with:
environment-file: envs/${{ matrix.env }}.yml
init-shell: bash
cache-environment: true
- name: Environment info
run: |
micromamba info
micromamba list
shell: bash -el {0}
- name: safety
run: |
safety check || true
shell: micromamba-shell {0}
- name: bandit
run: |
bandit -r improver
shell: micromamba-shell {0}
Type-checking:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
env: [latest]
if: github.repository_owner == 'metoppv'
steps:
- uses: actions/checkout@v4
- name: Environment creation
uses: mamba-org/setup-micromamba@v2
with:
environment-file: envs/${{ matrix.env }}.yml
init-shell: bash
cache-environment: true
- name: Environment info
run: |
micromamba info
micromamba list
shell: bash -el {0}
- name: mypy
run: |
mypy improver || true
shell: micromamba-shell {0}