Skip to content

Commit 5ec53c4

Browse files
authored
Add badges (#721)
* Add. * Fixes. * Add covecov to CI. * More fix.es * try fix ci issue. * Update. * Enhance debugging output in CI workflow Added diagnostic echo statements for conda environment and Python/pip paths during installation steps. * Simplify workflow by removing debug steps and adding packages Removed debugging steps from the workflow and added conda-packages specification. * Update code_test_and_deploy.yml * Fix cov argument. * Update README.md * fix DOI badge * Update DOI badge in README Updated DOI badge to the latest version.
1 parent 287a531 commit 5ec53c4

2 files changed

Lines changed: 30 additions & 4 deletions

File tree

.github/workflows/code_test_and_deploy.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,31 +98,48 @@ jobs:
9898
# run Linux containers because nested containerisation is disabled.
9999
- name: Test SSH (Linux only)
100100
if: runner.os == 'Linux'
101+
env:
102+
COVERAGE_FILE: .coverage.ssh
101103
run: |
102104
sudo service mysql stop # free up port 3306 for ssh tests
103-
pytest tests/tests_transfers/ssh
105+
pytest tests/tests_transfers/ssh --cov=datashuttle --cov-report=
104106
105107
- name: Test all except central connections
108+
env:
109+
COVERAGE_FILE: .coverage.main
106110
run: |
107-
pytest --ignore=tests/tests_transfers/ssh --ignore=tests/tests_transfers/gdrive --ignore=tests/tests_transfers/aws
111+
pytest --ignore=tests/tests_transfers/ssh --ignore=tests/tests_transfers/gdrive --ignore=tests/tests_transfers/aws --cov=datashuttle --cov-report=
108112
109113
- name: Test Google Drive
110114
env:
111115
GDRIVE_CLIENT_ID: ${{ secrets.GDRIVE_CLIENT_ID }}
112116
GDRIVE_CLIENT_SECRET: ${{ secrets.GDRIVE_CLIENT_SECRET }}
113117
GDRIVE_ROOT_FOLDER_ID: ${{ secrets.GDRIVE_ROOT_FOLDER_ID }}
114118
GDRIVE_CONFIG_TOKEN: ${{ secrets.GDRIVE_CONFIG_TOKEN }}
119+
COVERAGE_FILE: .coverage.gdrive
115120
run: |
116-
pytest tests/tests_transfers/gdrive
121+
pytest tests/tests_transfers/gdrive --cov=datashuttle --cov-report=
117122
118123
- name: Test AWS
119124
env:
120125
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
121126
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
122127
AWS_REGION: ${{ secrets.AWS_REGION }}
123128
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
129+
COVERAGE_FILE: .coverage.aws
130+
run: |
131+
pytest tests/tests_transfers/aws --cov=datashuttle --cov-report=
132+
133+
- name: Combine coverage reports
124134
run: |
125-
pytest tests/tests_transfers/aws
135+
coverage combine
136+
coverage xml
137+
138+
- name: Upload coverage reports to Codecov
139+
uses: codecov/codecov-action@v5
140+
with:
141+
token: ${{ secrets.CODECOV_TOKEN }}
142+
slug: neuroinformatics-unit/datashuttle
126143

127144
build_sdist_wheels:
128145
name: Build source distribution

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
[![Python Version](https://img.shields.io/pypi/pyversions/datashuttle.svg)](https://pypi.org/project/datashuttle)
2+
[![Downloads](https://pepy.tech/badge/datashuttle)](https://pepy.tech/project/datashuttle)
3+
[![License](https://img.shields.io/badge/License-BSD_3--Clause-orange.svg)](https://opensource.org/licenses/BSD-3-Clause)
4+
[![CI](https://img.shields.io/github/actions/workflow/status/neuroinformatics-unit/datashuttle/code_test_and_deploy.yml?label=CI)](https://github.com/neuroinformatics-unit/datashuttle/actions)
5+
[![codecov](https://codecov.io/gh/neuroinformatics-unit/datashuttle/branch/main/graph/badge.svg?token=P8CCH3TI8K)](https://codecov.io/gh/neuroinformatics-unit/datashuttle)
6+
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
7+
[![project chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://neuroinformatics.zulipchat.com/#narrow/channel/405999-DataShuttle)
8+
[![DOI](https://zenodo.org/badge/531897428.svg)](https://zenodo.org/badge/latestdoi/531897428)
9+
110
# **datashuttle**
211

312
**datashuttle** is a tool to automate creation, validation and transfer of neuroscience project folders.

0 commit comments

Comments
 (0)