Skip to content

Commit 4f1d7ce

Browse files
authored
Fix tox splitting test dirs, run on PR (#43)
fix coverage data collection/upload also: run on pull request
1 parent c2a33e0 commit 4f1d7ce

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
22
branch = True
3-
source = borg
3+
source = src/borg_import
44
omit =
55
*/borg_import/helpers/testsuite/*
66

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Test
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
lint:

tox.ini

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
envlist = py{35,36,37,38,39},flake8
66

77
[testenv]
8-
# Change dir to avoid import problem for cython code. The directory does
9-
# not really matter, should be just different from the toplevel dir.
10-
changedir = {toxworkdir}
8+
usedevelop = True
119
deps =
1210
-rrequirements.d/development.txt
13-
commands = py.test -rs --cov=borg_import --cov-config=../.coveragerc --pyargs {posargs:borg_import.helpers.testsuite}
11+
commands = py.test -rs --cov=borg_import --cov-config=.coveragerc --pyargs {posargs:borg_import.helpers.testsuite}
1412
# fakeroot -u needs some env vars:
1513
passenv = *
1614

0 commit comments

Comments
 (0)