From: Oleg Broytman Date: Sun, 29 Aug 2021 14:02:09 +0000 (+0300) Subject: CI: Github Actions X-Git-Tag: 3.1.0.post1~6^2~3 X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=commitdiff_plain;h=bbfcf35cc50cc969dfc7abd5daed7fd496e4d269 CI: Github Actions --- diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 0000000..1baf006 --- /dev/null +++ b/.github/workflows/run-tests.yaml @@ -0,0 +1,28 @@ +name: Run tests + +on: [push, pull_request] + +jobs: + run-tests: + + strategy: + matrix: + python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] + + name: Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python --version + python -m pip install --upgrade "pip<21.0" "setuptools<45" wheel + pip --version + python -m pip --version + python -m pip install --upgrade virtualenv tox tox-gh-actions + - name: Run tox targets for ${{ matrix.python-version }} + run: python -m tox diff --git a/tox.ini b/tox.ini index 85c1d11..ced00e3 100644 --- a/tox.ini +++ b/tox.ini @@ -24,3 +24,12 @@ commands = passenv = HOME setenv = VIRTUALENV_PIP = 19.1.1 + +[gh-actions] +python = + 2.7: py27 + 3.5: py35 + 3.6: py36 + 3.7: py37 + 3.8: py38 + 3.9: py39