Skip to content

Commit

Permalink
Merge b1888e8 into 4dc4a2b
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanheerdegen committed Feb 5, 2021
2 parents 4dc4a2b + b1888e8 commit 85a2db3
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Run CI tests
name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest

# Run the job for different versions of python
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out repository code
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install dependencies
run: pip install -r test/requirements_test.txt

- name: Install payu
run: pip install .

- name: Check payu installed correctly
run: payu list

- name: Lint
run: pylint --extension-pkg-whitelist=netCDF4 -E payu

- name: Run tests
run: |
PYTHONPATH=. pytest --cov=payu -s test;
ls -l
ls -lR test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Make docs
run: cd docs && make html

0 comments on commit 85a2db3

Please sign in to comment.