Skip to content

Commit 56014c9

Browse files
committed
update ci
1 parent ab6c69e commit 56014c9

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/CI.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ jobs:
4949
export MASTER_ADDR=localhost
5050
export MASTER_PORT=12345
5151
export PYTHONPATH=MCintegration
52-
pytest --cov --cov-report=xml --ignore=examples
52+
pytest --cov --junitxml=junit.xml -o junit_family=legacy --ignore=examples
5353
54-
- name: Upload coverage to Codecov
55-
uses: codecov/codecov-action@v4
54+
- name: Upload test results to Codecov
55+
if: ${{ !cancelled() }}
56+
uses: codecov/test-results-action@v1
5657
with:
5758
token: ${{ secrets.CODECOV_TOKEN }}
5859

MCintegration/mc_multicpu_test.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,7 @@ def two_integrands(x, f):
8282
def test_mcmc_singlethread():
8383
world_size = 1
8484
init_process(rank=0, world_size=world_size, fn=run_mcmc, backend=backend)
85-
86-
def test_mcmc_multithread():
87-
world_size = 2
88-
init_process(rank=0, world_size=world_size, fn=run_mcmc, backend=backend)
89-
85+
9086
def test_mcmc(world_size=2):
9187
# Use fewer processes than CPU cores to avoid resource contention
9288
world_size = min(world_size, mp.cpu_count())

0 commit comments

Comments
 (0)