-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from MetOffice/develop
Update master for V1
- Loading branch information
Showing
35 changed files
with
22,272 additions
and
612 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
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: Python Package using Conda | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
strategy: | ||
matrix: | ||
env: [current, next] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: update conda env | ||
shell: bash | ||
run: | | ||
source '/usr/share/miniconda/etc/profile.d/conda.sh' | ||
conda install -c conda-forge mamba | ||
mamba env update -q --file envs/default-${{ matrix.env }}.yml --name default-${{ matrix.env }} | ||
- name: conda info | ||
run: | | ||
source '/usr/share/miniconda/etc/profile.d/conda.sh' | ||
conda activate default-${{ matrix.env }} | ||
conda info | ||
conda list | ||
- name: pytest | ||
run: | | ||
source '/usr/share/miniconda/etc/profile.d/conda.sh' | ||
conda activate default-${{ matrix.env }} | ||
cd lib | ||
pytest -p no:warnings -v | ||
- name: flake8 | ||
run: | | ||
source '/usr/share/miniconda/etc/profile.d/conda.sh' | ||
conda activate default-${{ matrix.env }} | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exit-zero --max-complexity=10 --max-line-length=127 | ||
- name: Sphinx | ||
run: | | ||
source '/usr/share/miniconda/etc/profile.d/conda.sh' | ||
conda activate default-${{ matrix.env }} | ||
cd docsrc | ||
make github |
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
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
Oops, something went wrong.