Kunal Mehta 2 years ago
committed by GitHub
parent
commit
601d8e190f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 21 deletions
  1. +38
    -0
      .github/workflows/tests.yml
  2. +0
    -21
      .travis.yml

+ 38
- 0
.github/workflows/tests.yml View File

@@ -0,0 +1,38 @@
name: Tests
on: [push, pull_request]

jobs:
test:
strategy:
matrix:
python-version:
- 3.6
- 3.7
- 3.8
- 3.9
- "3.10"
with-extension: ["0", "1"]

runs-on: ubuntu-18.04

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 dependencies
run: |
python -m pip install --upgrade pip
pip install coveralls pytest
python setup.py develop
- name: Run tests
env:
WITHOUT_EXTENSION: ${{ matrix.with-extension }}
run: |
coverage run --source=mwparserfromhell -m pytest
- name: Submit to coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls

+ 0
- 21
.travis.yml View File

@@ -1,21 +0,0 @@
dist: focal
language: python
python:
- 3.6
- 3.7
- 3.8
- 3.9
arch:
- amd64
- ppc64le
install:
- pip install coveralls pytest
- python setup.py develop
script:
- coverage run --source=mwparserfromhell -m pytest
after_success:
- coveralls
env:
matrix:
- WITHOUT_EXTENSION=0
- WITHOUT_EXTENSION=1

Loading…
Cancel
Save