-
Notifications
You must be signed in to change notification settings - Fork 17
114 lines (95 loc) · 3.13 KB
/
tests.yaml
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
110
111
112
113
114
name: tests
on:
push:
branches:
- not-a-branch
pull_request: null
env:
PY_COLORS: "1"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests-load-graph:
name: tests-load-graph
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with:
path: cf-graph
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
miniforge-variant: Mambaforge
activate-environment: cf-scripts
- name: install bot code
run: |
conda install -y -q pygithub requests git pytest
git config --global user.name regro-cf-autotick-bot
git config --global user.email 36490558+regro-cf-autotick-bot@users.noreply.github.com
git config --global pull.rebase false
conda config --env --set add_pip_as_python_dependency False
conda info
conda config --show-sources
conda list --show-channel-urls
git clone --depth=1 https://github.com/regro/cf-scripts.git
pushd cf-scripts
conda env update --file environment.yml
python -m pip install --no-deps --no-build-isolation -e .
popd
git clone --depth=1 https://github.com/conda-forge/conda-forge-pinning-feedstock.git
- name: load graph
run: |
pushd cf-graph
pytest -vv test_load_graph.py
popd
tests-model:
name: tests-model
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
with:
path: cf-graph
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
channels: conda-forge,defaults
channel-priority: strict
show-channel-urls: true
miniforge-version: latest
miniforge-variant: Mambaforge
activate-environment: cf-scripts
- name: install bot code
run: |
conda install -y -q pygithub requests git pytest
git config --global user.name regro-cf-autotick-bot
git config --global user.email 36490558+regro-cf-autotick-bot@users.noreply.github.com
git config --global pull.rebase false
conda config --env --set add_pip_as_python_dependency False
conda info
conda config --show-sources
conda list --show-channel-urls
git clone --depth=1 https://github.com/regro/cf-scripts.git
pushd cf-scripts
conda env update --file environment.yml
python -m pip install --no-deps --no-build-isolation -e .
popd
git clone --depth=1 https://github.com/conda-forge/conda-forge-pinning-feedstock.git
- name: check graph model
continue-on-error: true
run: |
pushd cf-graph
pytest \
--durations 10 \
../tests/model
popd