Skip to content

Commit

Permalink
ci: remove duplicated steps
Browse files Browse the repository at this point in the history
  • Loading branch information
mkniewallner committed Nov 13, 2022
1 parent acca4cf commit f27a179
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:
- name: Set up the environment
uses: ./.github/actions/setup-poetry-env

- name: Formatting check
run: make check
- name: Run pre-commit
run: poetry run pre-commit run -a --show-diff-on-failure

- name: Test with pytest
run: make test
- name: Inspect dependencies
run: poetry run deptry .

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
- name: Check Poetry lock file consistency
run: poetry lock --check

tox:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,6 +58,10 @@ jobs:
- name: Test with tox
run: tox

- name: Upload coverage reports to Codecov with GitHub Action on Python 3.11
uses: codecov/codecov-action@v3
if: ${{ matrix.python-version == '3.11' }}

check-docs:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ passenv = PYTHON_VERSION
whitelist_externals = poetry
commands =
poetry install -v
pytest --doctest-modules tests
pytest --doctest-modules tests --cov --cov-config=pyproject.toml --cov-report=xml
mypy

[pytest]
Expand Down

0 comments on commit f27a179

Please sign in to comment.