forked from metomi/fcm
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.21 KB
/
tests.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
on: [pull_request, workflow_dispatch]
jobs:
test:
strategy:
fail-fast: False
matrix:
ubuntu: ['ubuntu-20.04', 'ubuntu-22.04']
name: FCM Tests ${{matrix.ubuntu}}
runs-on: ${{matrix.ubuntu}}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install
run: |
sudo apt update
sudo apt install -y \
gfortran-9 \
libconfig-inifiles-perl \
libxml-parser-perl \
libdbi-perl \
libdbd-sqlite3-perl \
libsvn-perl \
s-nail \
subversion
[[ ${{matrix.ubuntu}} != "ubuntu-22.04" ]] && sudo apt install -y python-subversion || true
[[ ${{matrix.ubuntu}} == "ubuntu-22.04" ]] && sudo apt install -y python2 || true
echo "#!/bin/bash" >"${PWD}/bin/gfortran"
echo 'exec gfortran-9 "$@"' >>"${PWD}/bin/gfortran"
chmod +x "${PWD}/bin/gfortran"
- name: Check Perl Version
run: perl --version
- name: Check SVN Version
run: svn --version
- name: Run tests
run: |
export LOGNAME="${USER}"
bin/fcm test-battery -j8