Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrated from Travis and Appveyor to GitHub Actions #68

Merged
merged 7 commits into from
Nov 16, 2020

Conversation

andy-maier
Copy link
Contributor

See commit message.

@andy-maier andy-maier force-pushed the andy/migrate-to-actions branch 4 times, most recently from 77297c2 to 84fe893 Compare November 16, 2020 11:26
@coveralls
Copy link

coveralls commented Nov 16, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling 5c559bf on andy/migrate-to-actions into bf9fca6 on master.

@andy-maier andy-maier force-pushed the andy/migrate-to-actions branch 4 times, most recently from 8dee111 to d0cc924 Compare November 16, 2020 14:57
@andy-maier andy-maier self-assigned this Nov 16, 2020
Copy link

@KSchopmeyer KSchopmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that there are some security vulnerabilities (bleach and psutils) marked if you clock on the code for this branch. https://github.com/pywbem/pywbem/network/alerts

Andy: Let's solve them separately.

.github/workflows/test.yml Show resolved Hide resolved
@andy-maier andy-maier force-pushed the andy/migrate-to-actions branch 10 times, most recently from 3a4579e to 0a0c16d Compare November 16, 2020 20:44
Details:
* Removed appveyor.yml and .travis.yml.
* Removed badges for Travis and Appveyor in README.
* Added badge for GitHub Actions in README.
* Added GitHub Actions workflow file test.yml.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
Details:

* Ensured in the Makefile that pip before v9 is always first upgraded to 9.0.1
  before again upgraded according to the requirements and constraint files.
  This is necessary because Pip started supporting the complete set of
  environment markers only in version 9.0.1.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
Details:

* In Github Actions with Python 3.4, a new virtualenv has pip version 8.0.0,
  but that version of pip does not yet support env marker 'implementation_name'.
  Fixed that by upgrading pip to >=9.0.1 in the new virtualenv before the
  install of the dependent packages.

* In Github Actions, Python is not installed in a virtualenv, so the saving
  and restoring of the virtualenv in test_install.sh has been made conditional
  to running in a virtualenv.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
Details:

* typed-ast was missing in dev-requirements.txt.
  astroid needs it on Python >=3.4 and Python <=3.7 and only on CPython.
  Added an according dependency.

* Changed the typed-ast version to match what astroid uses.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
…ctions

Details:

* On Windows runs in GitHub Actions with minimum package levels, safety is at
  version 1.8.4. This version fails with a UnicodeEncodeError due to cp1256
  being used by Click on that Windows system. The fix that addresses this
  issue in safety has already been released in safety 1.8.2, so it is strange
  that 1.8.4 still fails. Trying with safety version 1.9.0.

* Increased minimum versions of pyyaml to address safety issues.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
Details:

* Increased minimum version of 'coverage' to 5.0 in order to be able
  to specify 'relative_files=True" in the 'coveragerc' config file,
  which causes the file paths in the .coverage data file to be relative.
  This was originally needed to use a github app for reporting to
  coveralls (which is no longer used), but it seems like a good idea
  in general.

* Because coverage 5.0 does not support Python 3.4, disabled generating
  and reporting coverage data in the makefile, test.yml workflow file,
  and when installing dependent packages in the requirements and constraint
  files.

* Migrated from 'python-coveralls' to 'coveralls' because the former
  does not support GitHub Actions in parallel mode (it picks the run
  ID that is used by coveralls.io to combine the reports automatically
  from Travis and does neither allow specifying it from the outside,
  nor does it support other CI systems than Travis). Also,
  python-coveralls does not seem to be maintained anymore and its last
  officially supported Python version is 3.6.

* Since 'coveralls' 2.x only supports Python 3.5 and upwards, and
  'coveralls' 1.x is incompatible with the run ID, a fork of
  'coveralls' 2.x with Python 2.7 backport support is used on
  Python 2.7.

Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
@andy-maier andy-maier merged commit ed792ef into master Nov 16, 2020
@andy-maier andy-maier deleted the andy/migrate-to-actions branch November 16, 2020 20:59
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.

None yet

3 participants