diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml deleted file mode 100644 index fe194c2d..00000000 --- a/.github/workflows/linters.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Linters - -on: [push, workflow_dispatch] - -jobs: - - mypy: - name: Run mypy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - run: pip install tox - - run: tox - env: - TOXENV: mypy diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 10973659..5e8f37a9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,6 +23,10 @@ jobs: test-coverage: name: Run tests with coverage runs-on: ubuntu-latest + env: + DEPENDENCY_INJECTOR_DEBUG_MODE: 1 + COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }} + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} steps: - name: Get the current branch name shell: bash @@ -33,11 +37,20 @@ jobs: with: python-version: 3.9 - run: pip install tox cython - - run: | - make cythonize - tox + - run: make cythonize + - run: tox env: TOXENV: coveralls - DEPENDENCY_INJECTOR_DEBUG_MODE: 1 - COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }} - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + + mypy: + name: Run mypy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.9 + - run: pip install tox + - run: tox + env: + TOXENV: mypy