Skip to content

Commit

Permalink
Merge pull request #45 from NLeSC/44-ci-to-github-actions
Browse files Browse the repository at this point in the history
add CI github action (refs #44)
  • Loading branch information
Dafne van Kuppevelt authored Feb 19, 2021
2 parents a5a5d46 + 75e037c commit 0715bf9
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 34 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: CI Build

on:
push:
pull_request:
types: [opened, reopened]

jobs:
first_check:
name: first code check / python-3.8 / ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Python info
run: |
which python
python --version
- name: Install dependiencies
run: |
python -m pip install --upgrade pip
pip install mcfly prospector nose pandas
- name: Show pip list
run: |
pip list
- name: Check style against standards using prospector (only warn for now, but never fail)
shell: bash -l {0}
run: prospector --profile linter_profile -o grouped -o pylint:pylint-report.txt --zero-exit
- name: Run unit tests
run: |
nosetests
basic_checks:
name: Run tests across OS and versions / python-${{ matrix.python-version }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: first_check
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.6', '3.7', '3.8']
exclude:
# already tested in first_check job
- python-version: 3.8
os: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Python info
run: |
which python
python --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mcfly prospector nose pandas
- name: Show pip list
run: |
pip list
- name: Run unit tests
run: |
nosetests
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="mcflylogo.png" width="200"/>
</p>

[![Build Status](https://travis-ci.org/NLeSC/mcfly-tutorial.svg?branch=master)](https://travis-ci.org/NLeSC/mcfly-tutorial)
[![CI Build](https://github.com/NLeSC/mcfly-tutorial/workflows/CI%20Build/badge.svg)](https://github.com/NLeSC/mcfly-tutorial/actions)

This repository contains notebooks that show how to use the [mcfly](https://github.com/NLeSC/mcfly) software. Mcfly is deep learning tool for time series classification..

Expand Down
21 changes: 21 additions & 0 deletions linter_profile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
output-format: json

strictness: medium
test-warnings: true
doc-warnings: false

pylint:
disable:
- wrong-import-position
- redefined-builtin
- bare-except
- unused-argument
- dangerous-default-value
- too-many-branches
- too-many-arguments
- too-many-locals
- protected-access

pep8:
disable:
- E722

0 comments on commit 0715bf9

Please sign in to comment.