add github actions workflow, remove travis.yml

This commit is contained in:
codl 2022-03-04 19:34:26 +01:00
parent 44632934a7
commit 1354d415d3
2 changed files with 26 additions and 25 deletions

26
.github/workflows/run-tests.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Run tests on pushes and on PRs
on: [push, pull_request]
jobs:
run_tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.6"
- uses: actions/setup-node@v2
with:
node-version: "10"
- name: Install pipenv and python dependencies
run: |
pip install -U pip pipenv
pipenv sync -d
- name: Install node dependencies
run: npm install
- name: Run tests with pytest
run: pipenv run pytest --cov=.
- uses: codecov/codecov-action@v2

View File

@ -1,25 +0,0 @@
version: ~> 1.0
os: linux
dist: bionic
language: python
python:
- 3.6
- 3.7
- 3.8
- 3.9
install:
- pip install -r requirements.txt -r requirements-dev.txt
- nvm install 10
- nvm use 10
- npm install
script:
- pytest --cov=.
after_success:
- codecov
cache:
pip: true
directories:
- node_modules