From f11d1e47f4dff8c9a473cf148dcce9ac1b0b53c4 Mon Sep 17 00:00:00 2001 From: David Devoogdt Date: Thu, 11 May 2023 15:04:25 +0200 Subject: [PATCH] readthedocs dependicies fix, https://github.com/nedbat/coveragepy/issues/1392 --- .github/workflows/ci.yml | 6 +++--- .readthedocs.yaml | 2 +- pyproject.toml | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1fc752..7e06341 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,7 +106,7 @@ jobs: uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}} + # COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}} parallel-finished: true publish: @@ -118,7 +118,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 - with: {python-version: "3.11"} + with: {python-version: "3.10"} - name: Retrieve pre-built distribution files uses: actions/download-artifact@v3 with: {name: python-distribution-files, path: dist/} @@ -129,5 +129,5 @@ jobs: # - https://docs.github.com/en/actions/security-guides/encrypted-secrets TWINE_REPOSITORY: pypi TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + TWINE_PASSWORD: ${{secrets.PYPI_TOKEN}} run: pipx run tox -e publish diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 23d3228..d3cf6e8 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -22,8 +22,8 @@ build: python: "3.11" jobs: pre_install: - # - pip install numpy cython - git config --global url."https://${UGENT_USER_PWD}@github.ugent.be/".insteadOf "https://github.ugent.be/" + - pip install numpy cython python: install: diff --git a/pyproject.toml b/pyproject.toml index d41cee6..1cb5543 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,3 +12,7 @@ version_scheme = "no-guess-dev" [tool.black] line-length = 120 target-version = ['py38', 'py39', 'py310'] + + +[tool.coverage.run] +disable_warnings = ["couldnt-parse"]