Modify tests to work with svn 1.14 #79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |