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

Unit testing demo #26

Merged
merged 4 commits into from
Sep 19, 2024
Merged

Unit testing demo #26

merged 4 commits into from
Sep 19, 2024

Conversation

lizgzil
Copy link
Contributor

@lizgzil lizgzil commented Sep 2, 2024

For the have-a-go session:

git clone https://github.com/nestauk/dap_tutorials.git
git checkout testing
cd dap_tutorials/unit_tests
conda create --name unit_tests python=3.10
conda activate unit_tests
pip install -r requirements.txt

In this PR I also set up a github action for running the tests for this repo. Since this repo isn't really a python project (so doesnt have a setup.py or pyproject.toml) some parts of github/workflows/pytest.yaml needed to be commented out.

The test that is run should always pass and has no requirements or dependencies (other than pytest), so shouldn't get in the way.

@lizgzil lizgzil merged commit 1a46878 into main Sep 19, 2024
4 checks passed
@lizgzil lizgzil deleted the testing branch September 19, 2024 15:22
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