Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

CI: move twinecheck to tox env

Abdul Rauf69bf5c662555
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index a708474ef..e515959ad 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -25,6 +25,9 @@ jobs:
- python-version: "3.10" # Keep in sync with .readthedocs.yml
env:
TOXENV: docs
+ - python-version: "3.10"
+ env:
+ TOXENV: twinecheck
steps:
- uses: actions/checkout@v2
@@ -39,8 +42,3 @@ jobs:
run: |
pip install -U tox
tox
- - name: Twine check
- run: |
- pip install twine
- python setup.py sdist
- twine check dist/*
diff --git a/tox.ini b/tox.ini
index 2bf9454d0..2d94ba78f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -71,6 +71,14 @@ deps =
commands =
pylint conftest.py docs extras scrapy setup.py tests
+[testenv:twinecheck]
+basepython = python3
+deps =
+ twine==4.0.1
+commands =
+ python setup.py sdist
+ twine check dist/*
+
[pinned]
deps =
cryptography==3.3