-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
2 changed files
with
47 additions
and
7 deletions.
There are no files selected for viewing
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
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 |
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
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 |