diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2d4c457 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Test + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ 3.5, 3.6, 3.7, 3.8, 3.9, 2.7 ] + steps: + - uses: actions/checkout@v2 + + - name: Setup Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install pytest + + - name: Run tests + run: pytest -v diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 34b3918..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: python -python: - - "3.6" - - "3.5" - - "3.4" - - "2.7" -# command to run tests -script: py.test --verbose --verbose -sudo: False diff --git a/pyproject.toml b/pyproject.toml index 881c1ba..5228534 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["flit"] -build-backend = "flit.buildapi" +requires = ["flit_core >=2,<4"] +build-backend = "flit_core.buildapi" [tool.flit.metadata] module = "ptyprocess"