Add github test workflow and remove travis

pull/241/head
Vinayak Mehta 2021-06-15 02:29:25 +05:30
parent 7709e58d64
commit b5cf8a235d
No known key found for this signature in database
GPG Key ID: 2DE013537A15A9A4
2 changed files with 23 additions and 29 deletions

23
.github/workflows/test.yml vendored 100644
View File

@ -0,0 +1,23 @@
name: camelot
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install camelot with dependencies
run: |
make install
- name: Test with pytest
run: |
make test

View File

@ -1,29 +0,0 @@
sudo: true
language: python
cache: pip
addons:
apt:
update: true
install:
- make install
jobs:
include:
- stage: test
script:
- make test
python: '3.6'
- stage: test
script:
- make test
python: '3.7'
dist: xenial
- stage: test
script:
- make test
python: '3.8'
dist: xenial
- stage: coverage
python: '3.8'
script:
- make test
- codecov --verbose