From 953bb8f507a2fc5fc68f670d758c025a628c60fb Mon Sep 17 00:00:00 2001 From: Harrison Date: Mon, 24 Apr 2023 09:45:47 -0500 Subject: [PATCH] Refactored code structure and added steps to CI CI now archives build and tests if CLI works --- Jenkinsfile | 6 ++++++ filterfasta/{filterfasta.py => cli.py} | 0 setup.cfg | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) rename filterfasta/{filterfasta.py => cli.py} (100%) diff --git a/Jenkinsfile b/Jenkinsfile index ab01100..51d99dc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,6 +20,12 @@ pipeline { stage("test") { steps { sh "pip install dist/*.whl" + sh "filterfasta -h" + } + } + stage("archive") { + steps { + archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl' } } stage("publish") { diff --git a/filterfasta/filterfasta.py b/filterfasta/cli.py similarity index 100% rename from filterfasta/filterfasta.py rename to filterfasta/cli.py diff --git a/setup.cfg b/setup.cfg index fac52d5..e9feeec 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,10 +1,10 @@ [metadata] name = filterfasta -version = 0.0.1 +version = 0.0.2 [options] packages = filterfasta [options.entry_points] console_scripts = - filterfasta = filterfasta.filterfasta:main \ No newline at end of file + filterfasta = filterfasta.cli:main \ No newline at end of file