Skip to content

Commit 28ba51b

Browse files
committed
Added .coveragerc
making parallel - no overwrites by different processes Updated coveragerc
1 parent 6d7e583 commit 28ba51b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.coveragerc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[run]
2+
parallel = true
3+
include =
4+
src/algorithms/classic/graph_based/*
5+
*_manager.py
6+
src/maps/*
7+
src/simulator/*
8+
src/structures/*

.github/workflows/test-PRs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
1818
python-version: [3.8.5]
@@ -27,7 +27,7 @@ jobs:
2727
python-version: ${{ matrix.python-version }}
2828
- name: Install dependencies
2929
run: |
30-
sudo apt-get install xvfb scrot
30+
sudo apt-get install -y xvfb scrot
3131
python -m pip install --upgrade pip
3232
pip install flake8 coverage
3333
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
@@ -40,6 +40,6 @@ jobs:
4040
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4141
- name: Run tests with coverage and upload
4242
run: |
43-
CODECOV_EXEC="coverage run --source src/"
43+
CODECOV_EXEC="coverage run -p"
4444
$CODECOV_EXEC tests/run_tests.py --spawn-display
4545
bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }} -e PYTHON

0 commit comments

Comments
 (0)