Skip to content

Commit

Permalink
Use multiprocessing only when dealing with ci-integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
rousik committed Dec 13, 2023
1 parent c65426b commit 50eec4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,27 +177,27 @@ jobs:
env:
COVERAGE_FILE: .coverage.ferc_to_sqlite
run: |
coverage run \
coverage run --concurrency=multiprocessing \
src/pudl/ferc_to_sqlite/cli.py --clobber ${{ env.ETL_COMMANDLINE_OPTIONS }} ${{ env.ETL_CONFIG }}
- name: Run pudl_etl
env:
COVERAGE_FILE: .coverage.pudl_etl
run: |
alembic upgrade head
coverage run \
coverage run --concurrency=multiprocessing \
src/pudl/etl/cli.py ${{ env.ETL_COMMANDLINE_OPTIONS }} ${{ env.ETL_CONFIG }}
- name: Run integration tests
env:
COVERAGE_FILE: .coverage.pytest
run: |
coverage run \
coverage run --concurrency=multiprocessing \
-m pytest -n auto --live-dbs test/integration
- name: Checksum coverage files
run: ls .coverage* | xargs md5sum | sort
- name: Generate coverage
run: |
coverage --version
coverage combine --append
coverage combine
coverage xml
coverage report
- name: Upload coverage
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ docs-clean:
docs-build: docs-clean
doc8 docs/ README.rst
coverage run ${covargs} -- ${CONDA_PREFIX}/bin/sphinx-build -W -b html docs docs/_build/html
coverage combine
coverage xml

########################################################################################
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ omit = [
# Never hit by integration tests:
"src/pudl/validate.py",
]
concurrency = ["multiprocessing"]

[tool.coverage.paths]
# When running pudl tools installed with pip, the sources are imported
Expand Down

0 comments on commit 50eec4f

Please sign in to comment.