Skip to content

Run the test suite on Python 2.7 and 3.8 in GitHub Actions - #5

Draft
icanhasmath wants to merge 1 commit into
version-4.5.xfrom
prod-2446-gha-ci
Draft

icanhasmath wants to merge 1 commit into
version-4.5.xfrom
prod-2446-gha-ci

Conversation

@icanhasmath

Copy link
Copy Markdown

The fork's only CI config is .travis.yml, which no longer runs, so pull requests show no checks. The 4.5.post1 security release (#4) was verified only by local Python 2.7 runs.

This adds .github/workflows/tests.yml. It runs pytest tests on every pull request and on pushes to version-4.5.x:

  • Python 2.7, in the python:2.7 container, with pytest 4.6.11, mock 3.0.5 and pyasn1 0.4.8. setup-python no longer provides 2.7.
  • Python 3.8, in the python:3.8 container.

tox.ini's [pytest] addopts asks for pytest-cov, so the job passes -o addopts=.

.travis.yml is left in place. Removing it is a separate change.

Local run of the same commands in docker, on this branch: 92 passed on 2.7, 92 passed on 3.8. The doctests aren't run: 5 of them fail the same way on upstream 4.5, because their expected output is Python 3 b''.

Tracking: Linear PROD-2446.

The fork's only CI config was .travis.yml, which no longer runs, so pull
requests reported no checks and security releases rested on local runs.

Python 2.7 runs in the python:2.7 image because setup-python no longer
provides it. tox.ini's addopts asks for pytest-cov, so the job clears it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant