Skip to content

Commit 197390e

Browse files
committed
fix(tests): install setuptools before running
1 parent 316b9a1 commit 197390e

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

.taskcluster.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ tasks:
1717
repo:
1818
$if: 'tasks_for == "github-push"'
1919
then:
20-
git_url: ${event.repository.url}
21-
url: ${event.repository.url}
20+
git_url: ${event.repository.html_url}
21+
url: ${event.repository.html_url}
2222
ref: ${event.after}
2323
else:
24-
$if: 'tasks_for == "github-pull-request"'
24+
$if: 'tasks_for[:19] == "github-pull-request"'
2525
then:
26-
git_url: ${event.pull_request.head.repo.clone_url}
27-
url: ${event.pull_request.head.repo.url}
26+
git_url: ${event.pull_request.head.repo.html_url}
27+
url: ${event.pull_request.head.repo.html_url}
2828
ref: ${event.pull_request.head.sha}
2929
else:
30-
git_url: ${event.repository.url}
31-
url: ${event.repository.url}
30+
git_url: ${event.repository.html_url}
31+
url: ${event.repository.html_url}
3232
ref: ${event.release.tag_name}
3333
in:
3434
$let:
@@ -45,7 +45,8 @@ tasks:
4545
git config advice.detachedHead false &&
4646
git checkout ${repo.ref} &&
4747
pip install -e . &&
48-
python setup.py test
48+
pip install setuptools pytest pytest-mock "pytest-asyncio>=0.18.0,<1.2" flake8 asyncmock &&
49+
pytest
4950
- image: 'python:3.13'
5051
name: flake
5152
command:

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
"pytest>=7.0.0,<8.5",
2424
"pyyaml~=6.0",
2525
],
26-
setup_requires=["pytest-runner", "flake8"],
27-
tests_require=["pytest", "pytest-mock", "pytest-asyncio>=0.18.0,<1.2", "flake8", "asyncmock"],
2826
classifiers=[
2927
'Programming Language :: Python :: 3.9',
3028
'Programming Language :: Python :: 3.10',

0 commit comments

Comments
 (0)