Skip to content

Commit c0a92cc

Browse files
authored
mv test to github actions (#10)
* fix conflicts * set python-version * indent * rm travis_retry * install nosetests * fix install
1 parent 7c2b43f commit c0a92cc

File tree

2 files changed

+52
-21
lines changed

2 files changed

+52
-21
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# name: qiita-files CI
2+
3+
on:
4+
push:
5+
branches: [ dev ]
6+
pull_request:
7+
8+
jobs:
9+
# derived from https://github.com/actions/example-services/blob/master/.github/workflows/postgres-service.yml
10+
main:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Downloads a copy of the code in your repository before running CI tests
15+
- name: Check out repository code
16+
uses: actions/checkout@v2
17+
18+
- name: Setup for conda
19+
uses: conda-incubator/setup-miniconda@v2
20+
with:
21+
auto-update-conda: true
22+
python-version: 3.6
23+
24+
- name: Basic dependencies install
25+
shell: bash -l {0}
26+
run: |
27+
conda create --yes -n qiita-files python=3.6 h5py pandas scipy numpy
28+
conda activate qiita-files
29+
pip install .
30+
pip install sphinx sphinx-bootstrap-theme nose-timer codecov Click
31+
32+
- name: Main tests
33+
shell: bash -l {0}
34+
run: |
35+
conda activate qiita-files
36+
nosetests --with-doctest --with-coverage --cover-package=qiita_files
37+
38+
lint:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: flake8
42+
uses: actions/setup-python@v2
43+
with:
44+
python-version: 3.6
45+
- name: install dependencies
46+
run: python -m pip install --upgrade pip
47+
- name: Check out repository code
48+
uses: actions/checkout@v2
49+
- name: lint
50+
run: |
51+
pip install -q flake8
52+
flake8 qiita_files setup.py

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)