diff --git a/.github/run-tests.yml b/.github/workflows/run-tests.yml similarity index 67% rename from .github/run-tests.yml rename to .github/workflows/run-tests.yml index cefc18e7..07da5e23 100644 --- a/.github/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -11,6 +11,9 @@ on: jobs: run: + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} runs-on: macos-latest strategy: matrix: @@ -23,11 +26,10 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install dependencies + - name: Install test dependencies run: | python -m pip install --upgrade pip pip install -r requirements-test.txt - pip install -r requirements-ci.txt - name: Lint run: ./run-tests.sh -l @@ -35,11 +37,14 @@ jobs: - name: Unit tests run: ./run-tests.sh + - name: Install coverage dependencies + run: pip install -r requirements-ci.txt + - name: Codacy - run: python-codacy-coverage -r coverage.xml + run: python-codacy-coverage -r coverage.xml -c ${{ github.sha }} || exit 0 - name: Coveralls - run: coveralls + run: coveralls || exit 0 - name: Codecov - run: bash <(curl -s https://codecov.io/bash) + run: bash <(curl -s https://codecov.io/bash) || exit 0 diff --git a/requirements-test.txt b/requirements-test.txt index 4e5a9c6c..acdacf18 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -3,7 +3,5 @@ pytest==4.6.10 pytest-cov==2.8.1 pytest-httpbin==1.0.0 pytest-localserver==0.5.0 -# tox==3.15.1 -# twine==1.15.0 flake8==3.8.1 flake8-docstrings==1.5.0