From 88744ec87bd99b8539b9ec7de6e8ac2a230c2a1b Mon Sep 17 00:00:00 2001 From: Justin Quick Date: Sun, 5 Dec 2021 01:14:00 -0500 Subject: [PATCH] no travis --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ .travis.yml | 6 ------ pyproject.toml | 26 ++++++++++++++++++++++++++ tox.ini | 18 ------------------ 4 files changed, 51 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml delete mode 100644 tox.ini diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..3876789 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Python package + +on: + - push + - pull_request + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7] + + steps: + - uses: actions/checkout@v1 + - 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 tox tox-gh-actions + - name: Test with tox + run: tox diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 14dfb40..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -sudo: false -language: python -python: - - "3.7" -install: pip install tox-travis -script: tox diff --git a/pyproject.toml b/pyproject.toml index a71c675..b9ef9e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,3 +13,29 @@ python = "^3.7" [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" + +[tool.tox] +legacy_tox_ini = """ +[tox] +envlist = py37 + +[testenv] +deps = + requests==2.26.0 + Flask==2.0.2 + Flask-WeasyPrint==0.6 + weasyprint==53.4 + attrdict==2.0.1 + PyYAML==6.0 + + pytest==6.2.5 + pytest-cov==3.0.0 + ipython + +commands = + python -m pytest + +[gh-actions] +python = + 3.7: py37 +""" diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 85227ae..0000000 --- a/tox.ini +++ /dev/null @@ -1,18 +0,0 @@ -[tox] -envlist = py37 - -[testenv] -deps = - requests==2.26.0 - Flask==2.0.2 - Flask-WeasyPrint==0.6 - weasyprint==53.4 - attrdict==2.0.1 - PyYAML==6.0 - - pytest==6.2.5 - pytest-cov==3.0.0 - ipython - -commands = - python -m pytest