diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2021-06-11 15:38:16 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2021-06-11 16:43:35 -0500 |
commit | 727304595bba14dae6d765282490978f061f71de (patch) | |
tree | 7ad5c421cad720f4adeec6cef0758130f66eb718 /.github | |
parent | eb9206216686344a5a423216ff1e0cf99c1e3206 (diff) | |
download | requests-cache-727304595bba14dae6d765282490978f061f71de.tar.gz |
Workaround for poetry issue on python 3.10 beta
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fc17e99..5cce9bf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,6 +58,11 @@ jobs: - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: poetry install -v -E all + - name: Workaround for issue with poetry package extras (python 3.10 only) + if: ${{ startsWith(matrix.python-version, '3.10') }} + run: | + source $VENV + pip install -U cattrs - name: Install latest available requests + urllib3 (scheduled tests only) if: ${{ github.event.schedule }} run: | @@ -68,8 +73,8 @@ jobs: - name: Run tests run: | source $VENV - pytest tests/unit --numprocesses=auto ${{ env.COVERAGE_ARGS }} - pytest tests/integration --cov-append ${{ env.COVERAGE_ARGS }} + pytest -x tests/unit --numprocesses=auto ${{ env.COVERAGE_ARGS }} + pytest -x tests/integration --cov-append ${{ env.COVERAGE_ARGS }} # Latest python version: send coverage report to coveralls - name: Run coveralls |