Merge pull request #3 from ecmwf/test_hydrostats_decorators #30
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
name: ci | |
on: | |
push: | |
branches: [ "main", "develop" ] | |
pull_request: | |
branches: [ "main", "develop" ] | |
jobs: | |
setup_and_test: | |
name: setup_and_test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
environment-file: environment.yml | |
- name: install hat package | |
shell: bash -l {0} | |
run: pip install . | |
- name: conda check | |
shell: bash -l {0} | |
run: | | |
conda info | |
conda list | |
- name: quality assurance | |
shell: bash -l {0} | |
run: | | |
isort --check . | |
black --check . | |
flake8 . | |
- name: run tests | |
shell: bash -l {0} | |
run: pytest |