add github actions workflow, remove travis.yml
This commit is contained in:
parent
44632934a7
commit
1354d415d3
|
@ -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
|
25
.travis.yml
25
.travis.yml
|
@ -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
|
||||
|
Loading…
Reference in New Issue