Project

General

Profile

Feature #1582

GitHub test actions

Added by Alexander Watzinger 4 months ago. Updated 3 days ago.

Status:
In Progress
Priority:
Normal
Category:
Backend
Target version:
Start date:
2021-09-21
Estimated time:
8.00 h

Description

I'm looking into GitHub actions to automatically test the application when pushing.

  • Add coverage
  • Add icons for passed test, coverage on GitHub page
  • Try to remove adaptions for GitHub actions from productive code
  • Adapt for OpenAtlas

History

#1

Updated by Alexander Watzinger 4 months ago

So far I got it running somehow but got stuck because of an import module flask error. I'm not sure but it may be related to have to use Ubuntu (instead Debian) on the GitHub test systems.

#2

Updated by Alexander Watzinger 4 months ago

  • Description updated (diff)
#3

Updated by Alexander Watzinger 4 months ago

Example of another project with coverage by Peter: https://github.com/acdh-oeaw/mmp/blob/master/.github/workflows/test.yml

#4

Updated by Alexander Watzinger 4 months ago

  • Description updated (diff)
#5

Updated by Alexander Watzinger 3 months ago

  • Target version changed from 6.6.0 to 7.0.0
#6

Updated by Alexander Watzinger 28 days ago

  • Description updated (diff)
  • Status changed from In Progress to Acknowledged
  • Assignee deleted (Alexander Watzinger)
  • Target version changed from 7.0.0 to Wishlist
#7

Updated by Alexander Watzinger 26 days ago

  • Description updated (diff)
  • Target version changed from Wishlist to 7.1.0
#8

Updated by Alexander Watzinger 23 days ago

  • Status changed from Acknowledged to In Progress
  • Assignee set to Alexander Watzinger
  • Estimated time set to 8.00 h

Got tests running and badge showing on OpenAtlas website (https://github.com/craws/OpenAtlas-Website) in feature_testing branch.
I will try to remove code adaptions for GitHub actions in production code before merging to main and than begin implementation for the OpenAtlas application.
I got coverage working but removed it again because showing a badge for coverage seem to include 3rd party services and hackish workarounds, maybe in another version.

#9

Updated by Alexander Watzinger 3 days ago

GitHub actions for tests are implemented at the OpenAtlas website, see https://github.com/craws/OpenAtlas-Website with the test icon at the top of README.md.
I managed to keep adaptions for GitHub out of the OpenAtlas website code and contain it in .github (except the linked icon in README.md).
Next step will be implementation in the main OpenAtlas application, which will require more advanced setup to e.g. include database operations.

Also available in: Atom PDF