-
Notifications
You must be signed in to change notification settings - Fork 58
66 lines (62 loc) · 1.85 KB
/
sharpy_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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: SHARPy Tests
on:
push:
paths:
- '*.py'
- 'lib/*'
- '.github/workflows/sharpy*'
pull_request:
branches:
- main
- develop
- 'rc*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 10
platform: x64
#Swapped from Conda to Mamba due to Github runner memory constraint
- name: Setup Mamba
uses: mamba-org/setup-micromamba@v1
- name: Pre-Install dependencies
run: |
gfortran --version
wget --no-check-certificate https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh -O mamba.sh
bash mamba.sh -b -p $HOME/mamba
export PATH="$HOME/mamba/bin:$PATH"
hash -r
mamba config --set always_yes yes --set changeps1 no
mamba update --name base mamba
mamba list --name base mamba
mamba init bash
hash -r
export QT_QPA_PLATFORM='offscreen'
sudo apt install libeigen3-dev
mamba env create -f utils/environment.yml
mamba init bash
source activate sharpy
git submodule init
git submodule update
git fetch --tags -f
mkdir build && cd build
cmake .. && make install -j 4 && cd ..
pip install .
pip install coverage
coverage run -m unittest discover
coverage json
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
verbose: true