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

run cli tests as job in dev and production workflows #197

Merged
merged 4 commits into from
Feb 22, 2022

Conversation

laurencejackson
Copy link
Collaborator

@laurencejackson laurencejackson commented Dec 22, 2021

Small change to improve visiblity of tests in the actions tab.

Before, a separate CLI tests workflow was triggered on PRs or pushes to production branches. This was duplicate of the triggers in theother workflows. This PR adds the CLI tests as a second 'job' performed in parallel with the unit testing.

@github-actions
Copy link

github-actions bot commented Dec 22, 2021

Copy link
Contributor

@Lucrezia-Cester Lucrezia-Cester left a comment

Choose a reason for hiding this comment

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

Hi Laurence, this looks good. I only have one question. Why is the operating system not including mac users? (Line 97)

@laurencejackson
Copy link
Collaborator Author

Hi Laurence, this looks good. I only have one question. Why is the operating system not including mac users? (Line 97)

I've just tried rerunning the tests with macos-latest included in the os-matrix but the macOS tests fail, see below:

image

This issue with the unit test jobs is that technically docker doesn't support macos. We get around this on our development machines by using the docker desktop app which runs containers in a Linux VM and is not something that can be installed through the github actions as it is not supported (I just learned this now!).

The issue for the unit test_cli job is that the psycopg2 package requires an SSL library that is not available by default on macOS. We get around this on our development laptops by installing OpenSSL through brew and linking these in the environment (there's a quick description of this in the readme). I don't think that currently, we want to spend the time installing brew and the SSL libraries to perform these tests as we expect them to be identical across unix OS's like ubuntu and macOS.

Sorry for the long post. To summarise, I think testing with ubuntu only is sufficient for our purposes, and the added work of getting he tests to pass on macos is unlikely to offer us any benefit.

@laurencejackson
Copy link
Collaborator Author

Hi Lu, if you're happy with these changes please go ahead and merge them into the next release when you're ready. Thanks!

@Lucrezia-Cester Lucrezia-Cester merged commit 87dbe39 into release/0.6.0 Feb 22, 2022
@hshuaib90 hshuaib90 deleted the run-cli-tests-as-job branch July 30, 2022 17:14
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.

2 participants