-
Notifications
You must be signed in to change notification settings - Fork 5
87 lines (75 loc) · 2.44 KB
/
joss.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
name: joss paper
on:
push:
branches-ignore:
- '**'
jobs:
tests:
name: "${{ matrix.pymc-version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- pymc-version: "pymc3==3.9.3"
starry-version: "starry@git+https://github.com/rodluger/starry@master"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: actions/cache@v2
with:
path: ~/.theano
key: ${{ runner.os }}-${{ matrix.pymc-version }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ matrix.pymc-version }}-
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: starry_process
environment-file: environment.yml
- name: Set up environment
shell: bash -l {0}
run: |
jupyter nbextension enable --py widgetsnbextension
sudo apt-get update
sudo apt-get install ffmpeg
- name: Install dependencies
shell: bash -l {0}
run: |
python -m pip install -U pip
python -m pip uninstall -y theano # so that we know which version we're getting
python -m pip install ${{ matrix.pymc-version }} ${{ matrix.starry-version }}
python -m pip install -e ".[app,tests]"
python -c 'import theano; print(theano.__version__)'
- name: Figures
shell: bash -l {0}
run: |
cd joss/figures
ls *.py | xargs -n 1 python
- name: TeX
uses: docker://openjournals/paperdraft:latest
with:
args: joss/paper.md --defaults=metadata.yaml --to=latex --output=paper.tex
env:
GIT_SHA: $GITHUB_SHA
JOURNAL: joss
- name: PDF
uses: docker://openjournals/paperdraft:latest
with:
args: joss/paper.md --defaults=metadata.yaml
env:
GIT_SHA: $GITHUB_SHA
JOURNAL: joss
- uses: actions/upload-artifact@v2
with:
path: joss
- name: Push
if: ${{ github.event_name != 'pull_request' }}
run: |
git checkout --orphan joss-paper
git rm --cached -rf .
git add -f joss
git -c user.name='gh-actions' -c user.email='gh-actions' commit -m "building JOSS paper"
git push -q -f https://github.com/$GITHUB_REPOSITORY joss-paper