-
Notifications
You must be signed in to change notification settings - Fork 91
66 lines (55 loc) · 2.04 KB
/
test-model.yml
File metadata and controls
66 lines (55 loc) · 2.04 KB
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
name: test-model
on:
workflow_dispatch:
schedule:
- cron: "10 8 * * *" # daily at 8:10 UTC
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PY_COLORS: "1"
jobs:
test-model:
name: test-model
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -leo pipefail {0}
steps:
- name: free disk space
uses: endersonmenezes/free-disk-space@7901478139cff6e9d44df5972fd8ab8fcade4db1 # v3
with:
remove_android: true
remove_dotnet: true
remove_haskell: true
rm_cmd: "rmz"
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: mamba-org/setup-micromamba@d7c9bd84e824b79d2af72a2d4196c7f4300d3476 # v3.0.0
with:
environment-file: conda-lock.yml
environment-name: cf-scripts
condarc-file: autotick-bot/condarc
- name: configure conda, install code, and clone cf-graph
if: ${{ ! env.CI_SKIP }}
run: |
pip install --no-deps --no-build-isolation -e .
git clone --depth=1 https://github.com/regro/cf-graph-countyfair.git cf-graph
- name: conda info and env
if: ${{ ! env.CI_SKIP }}
run: |
echo "=================================================================="
echo "=================================================================="
conda info
echo ""
echo "=================================================================="
echo "=================================================================="
conda list
- name: run pytest (model)
if: ${{ ! env.CI_SKIP }}
run: |
cd cf-graph
# for pull requests, a failed model test should not be a failed check
# this is a hack around the absence of https://github.com/orgs/community/discussions/15452
pytest \
--durations 10 \
../tests_model ${{ github.event_name == 'pull_request' && '|| [ $? = 1 ]' || '' }}