Skip to content

Commit 0a6dbea

Browse files
Move from travis to github actions
1 parent 0bf405f commit 0a6dbea

File tree

2 files changed

+42
-24
lines changed

2 files changed

+42
-24
lines changed

.github/workflows/workflow.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: testing
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
jobs:
11+
build:
12+
runs-on: ubuntu-18.04
13+
strategy:
14+
matrix:
15+
python-version: [3.6, 3.7, 3.8, 3.9]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Setup Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python --version
25+
python -m pip install --upgrade pip
26+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
27+
bash miniconda.sh -b -p $HOME/miniconda
28+
source "$HOME/miniconda/etc/profile.d/conda.sh"
29+
hash -r
30+
conda config --set always_yes yes --set changeps1 no
31+
conda update -q conda
32+
conda info -a
33+
# nbconvert needs pandoc
34+
conda create -q -n test-environment -c conda-forge python=${{ matrix.python-version }} pandoc
35+
conda activate test-environment
36+
pip install -v .[test]
37+
- name: Testing
38+
run: |
39+
source "$HOME/miniconda/etc/profile.d/conda.sh"
40+
conda activate test-environment
41+
pytest -v
42+
pytest -v # run test twice because the first run populates the cache, so they are not exactly equivalent

.travis.yml

-24
This file was deleted.

0 commit comments

Comments
 (0)