Skip to content

Commit

Permalink
WIP: Use GitHub actions as CI (#22)
Browse files Browse the repository at this point in the history
* Use GitHub actions as CI

* Install fmu-ensemble, libecl

* Python 2.7, with frozen numpy

* Set dependencies
  • Loading branch information
Hans Kallekleiv authored Mar 18, 2020
1 parent 83c64d9 commit e3aa3a3
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 7 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/fmu-tools.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: fmu-tools

on:
push:
release:
types:
- published
pull_request:
types: [created, synchronize]

jobs:
fmu-tools:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['2.7', '3.6', '3.7', '3.8']

steps:

- name: Checkout commit locally
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install numpy for Python 2
if: matrix.python-version == '2.7'
run: |
pip install numpy==1.16.6
- name: Install requirements
run: |
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install git+https://github.com/equinor/libecl
pip install git+https://github.com/equinor/fmu-ensemble
pip install .
- name: Run tests
run: pytest ./tests
12 changes: 5 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
numpy
openpyxl
openpyxl
pandas
pyyaml
scipy
xlrd
openpyxl~=2.6
pandas~=0.24
pyyaml~=5.3
scipy~=1.2
xlrd~=1.2

0 comments on commit e3aa3a3

Please sign in to comment.