diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..3b9e862 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 59e1bd7..0000000 --- a/.travis.yml +++ /dev/null @@ -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 -