-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add coverage and comment out unit tests with fixture data / Sample mo…
…del mismatch
- Loading branch information
1 parent
99f9eb8
commit f7b0dd1
Showing
4 changed files
with
1,834 additions
and
30 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 |
---|---|---|
|
@@ -14,35 +14,11 @@ permissions: | |
|
||
jobs: | ||
build_lint_test: | ||
|
||
runs-on: ubuntu-latest | ||
# services: | ||
# mongodb: | ||
# image: mongo:latest | ||
# env: | ||
# MONGO_INITDB_ROOT_USERNAME: root | ||
# MONGO_INITDB_ROOT_PASSWORD: password | ||
# MONGO_INITDB_DATABASE: nmdc | ||
# MONGO_HOST: localhost | ||
# ports: | ||
# - 27017:27017 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: setup_mongodb | ||
uses: supercharge/[email protected] | ||
# with: | ||
# mongodb-uri: mongodb://localhost:27017 | ||
# mongodb-database: nmdc | ||
# mongodb-username: root | ||
# mongodb-password: password | ||
# mongodb-health-check: true | ||
# mongodb-health-check-timeout: 30 | ||
# run: | | ||
# sudo docker run --rm --detach --name mongodb --publish 27017:27017 \ | ||
# --env MONGO_INITDB_ROOT_USERNAME=root --env MONGO_INITDB_ROOT_PASSWORD=password \ | ||
# --env MONGO_INITDB_DATABASE=test \ | ||
# mongo:latest --auth | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v3 | ||
with: | ||
|
@@ -54,5 +30,6 @@ jobs: | |
poetry install | ||
- name: Test with pytest | ||
run: | | ||
poetry run pytest ./tests | ||
poetry run pytest ./tests --cov-report=term --cov-report=html \ | ||
--cov-report=xml --cov=nmdc_automation | ||
Oops, something went wrong.