Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Jan 24, 2025
1 parent fd21d4b commit 928a4ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: patch utilix file
# Secrets and required files
# Patch this file if we want to have access to the database
if: matrix.test != "pytest_no_database"
if: matrix.test != 'pytest_no_database'
run: bash .github/scripts/create_readonly_utilix_config.sh
env:
# RunDB
Expand All @@ -92,24 +92,24 @@ jobs:
- name: Create pre-apply function file
# In case we do not have database. We need to make a local file for
# The pre_apply_function (see #559).
if: env.HAVE_ACCESS_TO_SECRETS == null || matrix.test == "pytest_no_database"
if: env.HAVE_ACCESS_TO_SECRETS == null || matrix.test == 'pytest_no_database'
run: bash .github/scripts/create_pre_apply_function.sh $HOME

- name: Test package
# This is running a normal test
if: (matrix.test == "pytest_no_database" || matrix.test == "pytest")
if: (matrix.test == 'pytest_no_database' || matrix.test == 'pytest')
env:
TEST_MONGO_URI: "mongodb://localhost:27017/"
TEST_MONGO_URI: 'mongodb://localhost:27017/'
run: |
coverage run --source=straxen -m pytest --durations 0
coverage report
- name: Coveralls
# Make the coverage report and upload
env:
TEST_MONGO_URI: "mongodb://localhost:27017/"
TEST_MONGO_URI: 'mongodb://localhost:27017/'
NUMBA_DISABLE_JIT: 1
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: matrix.test == "coveralls" && (github.actor != "dependabot[bot]") && env.HAVE_ACCESS_TO_SECRETS != null
if: matrix.test == 'coveralls' && (github.actor != 'dependabot[bot]') && env.HAVE_ACCESS_TO_SECRETS != null
run: |
# Install straxen first
pip install -e .
Expand All @@ -129,4 +129,4 @@ jobs:
coverage run --append --source=straxen -m pytest -v
coveralls --service=github
- name: goodbye
run: echo "tests done, bye bye"
run: echo 'tests done, bye bye'

0 comments on commit 928a4ca

Please sign in to comment.