-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from kbase/db-specific-search
Changes to support CDM data import
- Loading branch information
Showing
6 changed files
with
219 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: tests | ||
|
||
# This action is triggered: | ||
# 1. when someone creates a pull request (to any branch) | ||
# 2. when changes are merged into the main branch (via a pull request) | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ '*' ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
container: ${{ matrix.container }} | ||
|
||
# we support Linux and macOS | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
# Steps for running tests and analysis. | ||
steps: | ||
- name: Checking out repository (${{ matrix.os }}) | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
submodules: recursive | ||
|
||
- name: Setting up Python 3.12 (${{ matrix.os }}) | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Installing dtspy dependencies (${{ matrix.os }}) | ||
run: python3 -m pip install -r requirements.txt | ||
|
||
- name: Running tests (${{ matrix.os }}) | ||
run: coverage run -m unittest discover | ||
env: | ||
DTS_KBASE_DEV_TOKEN: ${{ secrets.DTS_KBASE_DEV_TOKEN }} | ||
|
||
# add this when ready | ||
#- if: ${{ matrix.os == 'ubuntu-latest' }} | ||
# name: Uploading coverage report to codecov.io | ||
# uses: codecov/[email protected] | ||
# with: | ||
# token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# dtspy | ||
|
||
![Tests](https://github.com/kbase/dtspy/actions/workflows/tests.yml/badge.svg) | ||
|
||
Python client for the Data Transfer Service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.