-
Notifications
You must be signed in to change notification settings - Fork 6
101 lines (81 loc) · 2.54 KB
/
Copy pathCD-build.yml
File metadata and controls
101 lines (81 loc) · 2.54 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
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: CD
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
coverage:
name: Deploy Coverage Results
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install macOS Dependencies
if: runner.os == 'macOS'
run: |
brew tap sfarrens/sf
brew install bigmac libomp
- name: Check Python Version
run: python --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r develop.txt
python -m pip install twine
python -m pip install PyQt5
python -m pip install pyqtgraph
python -m pip install git+https://github.com/CEA-COSMIC/pysap.git@2e26a71024b5a0419b27d4b3fc5cdee77bd3919b
python -m pip install GalSim
- name: Install requirements
run: |
python -m pip install -r docs/requirements.txt
- name: Install MCCD
run: python -m pip install .
- name: Run Tests
run: |
python setup.py test
- name: Check distribution
run: |
python setup.py sdist
twine check dist/*
api:
name: Deploy API Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install macOS Dependencies
if: runner.os == 'macOS'
run: |
brew tap sfarrens/sf
brew install bigmac libomp
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pandoc
python -m pip install PyQt5
python -m pip install pyqtgraph
python -m pip install git+https://github.com/CEA-COSMIC/pysap.git@2e26a71024b5a0419b27d4b3fc5cdee77bd3919b
python -m pip install -r docs/requirements.txt
python -m pip install GalSim
python -m pip install .
- name: Build API documentation
run: |
sphinx-apidoc -t docs/_templates -feTMo docs/source mccd
sphinx-build -E docs/source docs/_build
- name: Deploy API documentation
uses: peaceiris/actions-gh-pages@v3.5.9
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build