Skip to main content

Seamless integration of tox into GitHub Actions

Project description

tox-gh-actions

Seamless integration of tox into GitHub Actions.

tox-gh-actions is a tox plugin which helps running tox on GitHub Actions with multiple different Python versions. This project is inspired by tox-travis.

Usage

tox.ini:

[tox]
envlist = py27, py35, py36, py37, mypy

[gh-actions]
python =
    2.7: py27
    3.5: py35
    3.6: py36
    3.7: py37, mypy

[testenv]
...

.github/workflows/<workflow>.yml:

name: Python package

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      matrix:
        python-version: [2.7, 3.5, 3.6, 3.7]

    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tox-gh-actions-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tox_gh_actions-0.1.1-py2.py3-none-any.whl (4.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file tox-gh-actions-0.1.1.tar.gz.

File metadata

  • Download URL: tox-gh-actions-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.4

File hashes

Hashes for tox-gh-actions-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8994b71f376662082db9d5f35d39f118f533745494c5e9856a588f1c5fc9e4b1
MD5 1a3b1d73f88082eb66defa7ef41f8e3b
BLAKE2b-256 69086811a3847b069dcf40ad725d5d294b6b9df1d84bba64c3643eb68ce02ced

See more details on using hashes here.

File details

Details for the file tox_gh_actions-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: tox_gh_actions-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.4

File hashes

Hashes for tox_gh_actions-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dc7e439c4dd33504ab5f2e289a95ef011062d8481399e6929482d556a6540734
MD5 f916ea66a4ee553c59b3ac31b5afe1f4
BLAKE2b-256 8e114fd79956c35f14a9bc03f34b67145c584a3f98fbd3814bcfb1df30ba5f55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page