-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (44 loc) · 1.46 KB
/
imfitCI_Action.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
name: Imfit CI
on:
push:
# branches: [ main ]
# pull_request:
# branches: [ main ]
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
# Steps are the individual actions for each job
steps:
# Check-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# The following Python setup is so we can use our text- and FITS-file comparison
# scripts in the regression tests
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install numpy astropy
# Run a set of commands using the shell
- name: setup
run: |
sudo apt-get update -qq
sudo apt-get install -y scons
sudo apt-get install -y libfftw3-dev
sudo apt-get install -y libcfitsio-dev
sudo apt-get install -y libgsl-dev
sudo apt-get install -y libnlopt-dev
sudo apt-get install -y cxxtest
- name: unit tests
run: ./run_unit_tests.sh
- name: build executables
run: |
scons makeimage
scons imfit
scons imfit-mcmc
- name: regression tests
run: |
./do_makeimage_tests