-
Notifications
You must be signed in to change notification settings - Fork 17
124 lines (97 loc) · 2.7 KB
/
ci.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: Compile IRBEM
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Install gfortran
run: |
sudo apt-get install gfortran
- name: Show gfortran version
run: gfortran --version
- name: Build
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
make OS=linux64 ENV=gfortran64 all
make OS=linux64 ENV=gfortran64 install
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python wrapper
run: |
cd python
python3 -m pip install -r requirements.txt
python3 -m pip install pytest
- name: Run Python tests
run: |
pytest
build-osx:
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Show gfortran version
run: gfortran-11 --version
- name: Build
shell: bash
run: |
make OS=osx64 ENV=github all
make OS=osx64 ENV=github install
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python wrapper
run: |
cd python
python3 -m pip install -r requirements.txt
python3 -m pip install pytest
- name: Run Python tests
run: |
pytest
build-win:
runs-on: windows-2019
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
# - uses: msys2/setup-msys2@v2
- name: Add gfortran to PATH
shell: bash
run: |
# $env:PATH = "C:\msys64\mingw64\bin;C:\msys64\usr\bin;$env:PATH"
# gfortran --version
echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH
echo "C:\msys64\usr\bin" >> $GITHUB_PATH
echo $(gfortran --version)
- name: Build
shell: bash
run: |
make OS=win64 ENV=gfortran64 all
make OS=win64 ENV=gfortran64 install
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Python wrapper
run: |
cd python
python3 -m pip install -r requirements.txt
python3 -m pip install pytest
- name: Run Python tests
run: |
pytest