-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (35 loc) · 1.04 KB
/
regression.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
name: Regression tests
on:
push:
branches: [ master ]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')"
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.6'
- name: Install numpy
run: |
python3 -m pip install numpy
- name: Install dependencies
run: |
python3 -m pip install -r requirements.txt
- name: Install OMAS
run: |
python3 -m pip install .[machine]
- name: Move to root and try importing OMAS
run: |
cd /
python3 -c "import omas; print(omas.__version__)"
- name: Run OMAS tests
run: |
make test