File tree 5 files changed +9
-32
lines changed
5 files changed +9
-32
lines changed Original file line number Diff line number Diff line change @@ -69,22 +69,15 @@ jobs:
69
69
- name : Setup Miniconda
70
70
uses :
conda-incubator/[email protected]
71
71
with :
72
+ activate-environment : pygmt
72
73
python-version : ${{ matrix.python-version }}
73
74
channels : conda-forge
74
75
miniconda-version : " latest"
75
76
76
77
# Install GMT and other required dependencies from conda-forge
77
- - name : Install GMT and required dependencies
78
+ - name : Install dependencies
78
79
shell : bash -l {0}
79
- run : |
80
- requirements_file=full-conda-requirements.txt
81
- cat requirements.txt requirements-dev.txt > $requirements_file
82
- cat << EOF >> $requirements_file
83
- gmt=6.1.1
84
- make
85
- codecov
86
- EOF
87
- conda install --yes --file $requirements_file
80
+ run : conda env update --file environment.yml
88
81
89
82
# Show installed pkg information for postmortem diagnostic
90
83
- name : List installed packages
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ The main advantages of this are:
42
42
43
43
We use GitHub Actions continuous integration (CI) services to
44
44
build and test the project on Linux, macOS and Windows.
45
- They rely on the ` requirements.txt ` file to install required dependencies using
45
+ They rely on the ` environment.yml ` file to install required dependencies using
46
46
conda and the ` Makefile ` to run the tests and checks.
47
47
48
48
### GitHub Actions
Original file line number Diff line number Diff line change @@ -3,22 +3,25 @@ channels:
3
3
- conda-forge
4
4
- defaults
5
5
dependencies :
6
- - python=3.8
6
+ # Required dependencies
7
7
- pip
8
8
- gmt=6.1.1
9
9
- numpy
10
10
- pandas
11
11
- xarray
12
12
- netCDF4
13
13
- packaging
14
+ # Development dependencies
14
15
- black
15
16
- blackdoc
17
+ - codecov
16
18
- coverage[toml]
17
19
- docformatter
18
20
- flake8
19
21
- ipython
20
22
- isort>=5
21
23
- jupyter
24
+ - make
22
25
- matplotlib
23
26
- nbsphinx
24
27
- pylint
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- # Requirements for installing with conda
1
+ # Required packages
2
2
numpy
3
3
pandas
4
4
xarray
You can’t perform that action at this time.
0 commit comments