uclahs-cds / tool-NFTest

CLI to automate Nextflow pipeline testing
GNU General Public License v2.0
11 stars 1 forks source link

Add GitHub action for pytest #59

Closed nwiltsie closed 10 months ago

nwiltsie commented 10 months ago

Description

As it says in the title. I will remember to run unit tests roughly 10% of the time and so our wonderful mechanical overlords at GitHub should do it for me.

The action YAML is based on GitHub's example.

There are at least two highly-starred public actions that would let us do something interesting with the test results (EnricoMi/publish-unit-test-result-action and mikepenz/action-junit-report), but as any action would require write permissions I'm choosing to defer on that for now.

I did have to add a requirements.txt file and I'm pretty rusty at python packaging - @aholmes would you mind sanity-checking me?

Checklist

[^1]: UCLA Health reaches $7.5m settlement over 2015 breach of 4.5m patient records [^2]: The average healthcare data breach costs $2.2 million, despite the majority of breaches releasing fewer than 500 records. [^3]: Genetic information is considered PHI. Forensic assays can identify patients with as few as 21 SNPs [^4]: RNA-Seq, DNA methylation, microbiome, or other molecular data can be used to predict genotypes (PHI) and reveal a patient's identity.

  To automatically exclude such files using a .gitignore file, see here for example.