Skip to content

Commit d51abab

Browse files
committed
chore: modify test setup
1 parent cac393a commit d51abab

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ jobs:
3131
- name: Install dependencies
3232
run: |
3333
python -m pip install --upgrade pip setuptools wheel
34-
python -m pip install tox tox-gh-actions
34+
python -m pip install tox tox-gh-actions twine pep517
35+
- name: Check requirements with pip
36+
run: python -m pip check .
3537
- name: Test isort
3638
run: tox -e isort
3739
if: matrix.python-version == '3.6'
@@ -41,9 +43,9 @@ jobs:
4143
- name: Test flake8
4244
run: tox -e flake8
4345
if: matrix.python-version == '3.6'
44-
# - name: Test docs
45-
# run: tox -e docs
46-
# if: matrix.python-version == '3.6'
46+
- name: Test docs
47+
run: tox -e docs
48+
if: matrix.python-version == '3.6'
4749
- name: Test safety
4850
run: tox -e safety
4951
- name: Test suite
@@ -53,9 +55,14 @@ jobs:
5355
SECRET_API_KEY: ${{ secrets.STRUCTURIZR_API_KEY }}
5456
SECRET_API_SECRET: ${{ secrets.STRUCTURIZR_API_SECRET }}
5557
- name: Report coverage
56-
uses: codecov/codecov-action@v1
57-
with:
58-
fail_ci_if_error: true
58+
shell: bash
59+
run: bash <(curl -s https://codecov.io/bash)
60+
- name: Check package PEP517 compliance
61+
run: python -m pep517.check .
62+
- name: Build package
63+
run: python -m pep517.build --source --binary .
64+
- name: Check the package compliance
65+
run: twine check dist/*
5966

6067
release:
6168
needs: test
@@ -79,12 +86,8 @@ jobs:
7986
run: |
8087
python -m pip install --upgrade pip setuptools wheel
8188
python -m pip install twine pep517
82-
- name: Check PEP517 compliance
83-
run: python -m pep517.check .
8489
- name: Build package
8590
run: python -m pep517.build --source --binary .
86-
- name: Check the package
87-
run: twine check dist/*
8891
- name: Publish to PyPI
8992
env:
9093
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

tox.ini

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = isort, black, flake8, mypy, safety, docs, py3{6,7,8,9}
2+
envlist = isort, black, flake8, docs, safety, py3{6,7,8,9}
33
isolated_build = true
44

55
[gh-actions]
@@ -60,11 +60,8 @@ commands=
6060
skip_install = True
6161
deps=
6262
-r{toxinidir}/docs/requirements.txt
63-
whitelist_externals =
64-
make
6563
commands=
66-
make -C {toxinidir}/docs html
67-
make -C {toxinidir}/docs linkcheck
64+
mkdocs build --strict
6865

6966
################################################################################
7067
# Testing tools configuration #

0 commit comments

Comments
 (0)