-
Notifications
You must be signed in to change notification settings - Fork 30
76 lines (63 loc) · 1.93 KB
/
on_pr.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
name: Latest per-python environments
on:
workflow_dispatch:
pull_request:
push:
branches:
- 'master'
- 'feature-*'
- 'bugfix-*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-22.04, macos-13, macos-14] # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
toolchain:
- {compiler: gcc, version: 13} # https://github.com/fortran-lang/setup-fortran
name: ${{ matrix.os }} python${{ matrix.python-version}}
steps:
- name: Checkout PHOEBE
uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: PHOEBE environment variables
run: |
export PHOEBE_ENABLE_PLOTTING='FALSE'
export PHOEBE_UPDATE_PASSBAND_IGNORE_VERSION='TRUE'
- name: Update pip
run: |
python -m pip install --upgrade pip
- name: Install phoebe optional modules
run: |
python -m pip install rebound
- name: Install PHOEBE from source
run: |
pip install .
- name: Install and run pipdeptree to see package dependencies
run: |
python -m pip install pipdeptree
pipdeptree
- name: Setup GNU Fortran
id: setup-fortran
uses: fortran-lang/setup-fortran@v1
- name: Install jktebop
env:
FC: ${{ steps.setup-fortran.outputs.fc }}
run: |
wget https://www.astro.keele.ac.uk/jkt/codes/jktebop-v43.tgz
tar -xvzf jktebop-v43.tgz
cd jktebop43
${{ env.FC }} -o jktebop jktebop.f
echo $(pwd) >> $GITHUB_PATH
cd ..
- name: Test jktebop install
run: |
jktebop
- name: Run tests
run: |
pytest --verbose --capture=no tests/tests/