Skip to content

Commit

Permalink
Run tests on github actions (#2383)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom authored Dec 12, 2020
1 parent 3b4c21a commit 975f95c
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 68 deletions.
61 changes: 58 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:

- name: Setup Python
uses: actions/setup-python@v2
with:
# Avoid Python 3.9 until scipy stack can cleanly build
python-version: '3.8.x'

- name: Install seaborn
run: |
Expand All @@ -38,3 +35,61 @@ jobs:
- name: Build docs
run: make -C doc notebooks html


run-tests:
runs-on: ubuntu-latest

strategy:
matrix:

python: [3.6.x, 3.7.x, 3.8.x, 3.9.x]
target: [test]
deps: [latest]
backend: [agg]
prefix: ['']

include:
- python: 3.6.x
target: unittests
deps: pinned
backend: agg
prefix: ''
- python: 3.9.x
target: unittests
deps: minimal
backend: agg
prefix: ''
- python: 3.9.x
target: test
deps: latest
backend: tkagg
prefix: xvfb-run -a

steps:

- name: Checkout
uses: actions/checkout@v2

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

- name: Install seaborn
run: |
python -m pip install --upgrade pip
pip install `cat ci/deps_${{ matrix.deps }}.txt ci/utils.txt`
pip install .
- name: Cache datastes
run: python ci/cache_test_datasets.py

- name: Run tests
env:
MPLBACKEND: ${{ matrix.backend }}
run: ${{ matrix.prefix }} make ${{ matrix.target }}

- name: Upload coverage
uses: codecov/codecov-action@v1
if: ${{ success() }}
60 changes: 0 additions & 60 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions ci/deps_pinned.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
numpy=1.15
scipy=1.0
pandas=0.23
matplotlib=2.2
statsmodels=0.8
numpy==1.15
scipy==1.0
pandas==0.23
matplotlib==2.2
statsmodels==0.8

0 comments on commit 975f95c

Please sign in to comment.