diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml new file mode 100644 index 0000000..1b9707d --- /dev/null +++ b/.github/workflows/pypi.yaml @@ -0,0 +1,40 @@ +name: pypi + +on: + push: + tags: + - v* + +jobs: + test: + strategy: + matrix: + python: + - version: "3.8" + toxenv: "py38" + - version: "3.9" + toxenv: "py39" + - version: "3.10" + toxenv: "py310" + - version: "3.11" + toxenv: "py311" + - version: "3.12" + toxenv: "py312" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python.version }} + - run: python -m pip install --upgrade setuptools pip 'tox<4' virtualenv + - run: tox -e ${{ matrix.python.toxenv }} + pypi: + needs: test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + - run: python setup.py sdist + - uses: pypi/gh-action-pypi-publish@v1.8.10 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..5089395 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,31 @@ +name: test + +on: + push: + branches: [master] + tags: '*' + pull_request: + +jobs: + test: + strategy: + matrix: + python: + - version: "3.8" + toxenv: "py38" + - version: "3.9" + toxenv: "py39" + - version: "3.10" + toxenv: "py310" + - version: "3.11" + toxenv: "py311" + - version: "3.12" + toxenv: "py312" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python.version }} + - run: python -m pip install --upgrade setuptools pip 'tox<4' virtualenv + - run: tox -e ${{ matrix.python.toxenv }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3e74013..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: python -matrix: - include: - - env: TOXENV=py27 - python: 2.7 - - env: TOXENV=py35 - python: 3.5 - - env: TOXENV=py36 - python: 3.6 -install: pip install coveralls tox -script: tox -cache: - directories: - - $HOME/.cache/pip diff --git a/tox.ini b/tox.ini index 3a82ce5..16ad2d0 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,6 @@ [tox] -envlist = py27,py34,py35,py310 +envlist = py38, py39, py310, py311, py312 +skip_missing_interpreters = true [testenv] passenv = TERM