Skip to content

Commit 524851e

Browse files
ci: use tox on ci workflow
1 parent 921e14b commit 524851e

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,17 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
pip install -r requirements.txt
32-
pip install -r dev-requirements.txt
31+
pip install tox tox-gh-actions
3332
34-
- name: Run tests
35-
run: |
36-
pytest
37-
mypy src
38-
flake8 src tests
33+
- name: Run tests with tox
34+
run: tox
3935

4036
- name: Generate documentation
37+
if: matrix.python-version == '3.9'
4138
run: |
42-
sphinx-apidoc --force --output-dir docs/apidoc src/cryptosteganography
43-
sphinx-build -a -W docs docs/_build
39+
tox -e docs
4440
4541
- name: Upload coverage to Codecov
4642
if: matrix.python-version == '3.9'
47-
run: codecov
43+
run: |
44+
codecov

0 commit comments

Comments
 (0)