-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (56 loc) · 1.62 KB
/
ubuntu.yml
File metadata and controls
73 lines (56 loc) · 1.62 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
name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ubuntu-local-builds:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
name: [ "Local Build Focal", "Local Build Jammy" ]
include:
- name: "Local Build Focal"
release: focal
python: python3.8
- name: "Local Build Jammy"
release: jammy
python: python3.10
container:
image: ubuntu:${{ matrix.release }}
steps:
- name: Check Out Repo
uses: actions/checkout@v2
- name: Install dependencies
run: |
echo "Europe/London" > /etc/timezone
apt-get -y update
DEBIAN_FRONTEND=noninteractive apt-get -y install gfortran g++ python3-setuptools python3-pip python3-all-dev debhelper dh-python texlive python3-junit.xml
- name: Configuring
run: ./configure --prefix=/tmp
- name: Building
run: |
make -j
make install
- name: Testing fortran library
run: make junittest
- name: Testing
env:
PYTHONPATH: /tmp/lib/${{ matrix.python }}/site-packages
LD_LIBRARY_PATH: /tmp/lib
run: |
cd python
python3 test_libspud_junit.py
- name: Building documentation
run: make doc
- name: Publish JUnit
uses: mikepenz/action-junit-report@v2
with:
report_paths: '**/test_result*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
check_name: JUnit Report
fail_on_failure: true