BritishGeologicalSurvey / etlhelper

ETL Helper is a Python ETL library to simplify data transfer into and out of databases.
https://britishgeologicalsurvey.github.io/etlhelper/
GNU Lesser General Public License v3.0
105 stars 25 forks source link

Create GitHub workflow for automated testing #150

Closed leorudczenko closed 1 year ago

leorudczenko commented 1 year ago

Summary

As an ETLHelper developer, I want to the tests for ETLHelper to automatically run in GitHub with a workflow and GitHub actions.

Description

Currently, it can be awkward to run the tests locally as it requires database setup. This issue could be solved by creating an automated workflow using GitHub actions, which runs the tests remotely when a new change is made to ETLHelper.

A basic workflow which runs pytest can be found in the TACtool repository.

The workflow should also run the tests in different versions of Python.

Acceptance Criteria

leorudczenko commented 1 year ago

A GitHub workflow has been created for the repository, however, it is encountering an issue. Whenever the tests are run, an error occurs which states that the sqlite3 module could not be found, despite the fact that it should be included with standard Python.

The workflow currently uses all 3 required Python versions, and the sqlite3 module error is occurring on all of these versions.

leorudczenko commented 1 year ago

It has been decided to only run pytest in the GitHub workflow on the test/unit directory, as these tests run without causing import errors. This means that the current GitHub workflow achieves the same result as the previously used .travis.yml pipeline.

volcan01010 commented 1 year ago

What happened to the sqlite3 problem? Did you fix it?