diff options
author | Chris Dent <cdent@anticdent.org> | 2023-04-30 12:19:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-30 12:19:09 +0100 |
commit | 36fd9632d6ad880b24177a08435eb8e1f9b01714 (patch) | |
tree | e40622cf6a8167ea54c098a3db2361c6dab96b8c /.github | |
parent | 59eaf315d0e25ea8189e63d4f448d9808f8eb85d (diff) | |
download | paste-git-36fd9632d6ad880b24177a08435eb8e1f9b01714.tar.gz |
Add github actions tests (#77)
Borrowing the configuration from wsg-intercept and then editing
to fit so that we've got some automated tests.
To get this to work it was necessary to:
* adjust python versions
* update action version
* pin the ubuntu version
* fix warning in test_grantip
* form.cgi needs to not use six because it is not running in
the virtualenv
* quiet deprecations in in form.cgi because cgi module is deprecated
* Skip the proxy test as it uses httpbin.org which is unreliable
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/tests.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..a352171 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,36 @@ +name: tests +on: [push, workflow_dispatch] +jobs: + build: + runs-on: ubuntu-20.04 + strategy: + matrix: + include: + - python: 2.7 + env: py27 + - python: 3.5 + env: py35 + - python: 3.6 + env: py36 + - python: 3.7 + env: py37 + - python: 3.8 + env: py38 + - python: 3.9 + env: py39 + - python: "3.10" + env: py310 + - python: "3.11" + env: py311 + - python: pypy-3.8 + env: pypy3 + name: ${{ matrix.env }} on Python ${{ matrix.python }} + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python }} + - run: pip install tox + - run: tox + env: + TOXENV: ${{ matrix.env }} |