Skip to content

Commit 897ea95

Browse files
sminotnathanthorpe
andauthored
Format a wide samplesheet in Preprocess helper and move to poetry (#34)
* Format a wide samplesheet with each read-pair on a row * Initial test scaffold * Test with and without lane * Add newline at end of file * Remove whitespace * Remove whitespace * Add tests to github actions * Add pytest dependency * Switch to poetry package management * Add poetry run prefix * update working dir Co-authored-by: Nathan Thorpe <[email protected]>
1 parent a01a1dd commit 897ea95

File tree

17 files changed

+1816
-73
lines changed

17 files changed

+1816
-73
lines changed

.github/workflows/lint.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ jobs:
2525
- name: Install deps
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install flake8
29-
python setup.py install
28+
pip install poetry
29+
poetry install --all-extras
3030
3131
- name: Run lint
3232
run: |
33-
flake8 pubweb
33+
poetry run flake8 pubweb
34+
35+
- name: Run Tests
36+
working-directory: tests
37+
run: |
38+
poetry run pytest --cov --cov-report=xml --cov-branch -o junit_family=xunit2 --junitxml=junit/test-results.xml

.github/workflows/package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ jobs:
2828
- name: Install deps
2929
run: |
3030
python -m pip install --upgrade pip
31-
pip install wheel
31+
pip install poetry
3232
3333
- name: Test install
3434
run: |
35-
python setup.py install
36-
pubweb-cli
35+
poetry install --all-extras
36+
poetry run pubweb-cli
3737
3838
- name: Build python package
3939
run: |
40-
python setup.py bdist_wheel
40+
poetry build
4141
4242
- name: Publish package
4343
if: github.event_name == 'release'

.sonarcloud.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
sonar.python.version=3
2+
sonar.python.xunit.reportPath=**/junit/test-results.xml
3+
sonar.python.coverage.reportPaths=**/coverage.xml
4+
sonar.exclusions=**/tests/*.py

0 commit comments

Comments
 (0)