Skip to content

Update to v0.3.3

Update to v0.3.3 #29

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Python ${{ matrix.python-version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10']
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Cache conda
uses: actions/cache@v2
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-python-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('tests/environment-dev.yml') }}
- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
use-only-tar-bz2: true # required for caching
show-channel-urls: true
channel-priority: strict
activate-environment: pynamical-dev
environment-file: tests/environment-dev.yml
- name: Install pynamical
run: |
python setup.py install
conda list
conda info --all
- name: Lint code
run: |
isort . --check-only
black . --line-length 100 --check --diff
flake8 .
pydocstyle .
- name: Test docs
run: make -C ./docs html
- name: Test code
run: |
coverage run --source ./pynamical --module pytest --verbose
coverage xml -i
coverage report -m
- name: Upload coverage report
uses: codecov/codecov-action@v1