-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (100 loc) · 2.69 KB
/
coordop.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
name: coordop
run-name: ${{ github.actor }}
on:
push:
branches:
- master
schedule:
- cron: '30 5 * * 0'
jobs:
envs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: multienv
python-version: 3.12
auto-activate-base: false
- run: conda install -c cosmoloj multienv
- run: pyenvs lint
- working-directory: coordop
run: pyenvs deps
- uses: actions/upload-artifact@v4
with:
name: pylintrc-environments
path: pylintrc_*
retention-days: 1
- uses: actions/upload-artifact@v4
with:
name: conda-environments
path: coordop/environment_*
retention-days: 1
lint:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: lint
environment-file: coordop/environment_lint.yml
python-version: 3.12
auto-activate-base: false
- run: |
conda --version
python --version
conda list
- working-directory: coordop
run: |
pip install .
pylint --rcfile=../pylintrc_src src
lint-test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: lint_test
environment-file: coordop/environment_lint_test.yml
python-version: 3.12
auto-activate-base: false
- run: |
conda --version
python --version
conda list
- working-directory: coordop
run: |
pip install .
pylint --rcfile=../pylintrc_test test/projection/*
test:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
environment-file: coordop/environment_test.yml
python-version: 3.12
auto-activate-base: false
- run: |
conda --version
python --version
conda list
- working-directory: coordop
run: pip install .
- run: pytest --cov=coordop --junitxml=coordop/report.xml --cov-append coordop