diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2021-05-23 17:11:01 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2021-05-23 17:15:27 -0500 |
commit | 95f062cc61844922cbd631d263584c8be5452495 (patch) | |
tree | 3794858477d728a44eed8cf92b5e93417ba7a941 /.github | |
parent | 37198b0834f67ec4f8d308da811db73f5d96dbe2 (diff) | |
download | requests-cache-95f062cc61844922cbd631d263584c8be5452495.tar.gz |
Run daily scheduled tests against latest available versions of requests + urllib3
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 17b1e15..974ccb5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,8 @@ on: tags: ['v*'] pull_request: branches: [master] + schedule: + - cron: '0 5 * * *' workflow_dispatch: env: LATEST_PY_VERSION: 3.9 @@ -56,27 +58,29 @@ jobs: - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: poetry install -v -E backends + - name: Install latest available requests + urllib3 (scheduled tests only) + if: ${{ github.event.schedule }} + run: | + poetry add requests@latest + poetry add urllib3@latest + + # Run tests with coverage report + - name: Run tests + run: | + source $VENV + pytest tests/unit --numprocesses=auto ${{ env.COVERAGE_ARGS }} + pytest tests/integration --cov-append ${{ env.COVERAGE_ARGS }} - # Latest python version: Run tests with coverage and send to coveralls - - name: Run tests with code coverage report + # Latest python version: send coverage report to coveralls + - name: Run coveralls if: ${{ matrix.python-version == env.LATEST_PY_VERSION }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | source $VENV - pytest tests/unit --numprocesses=auto ${{ env.COVERAGE_ARGS }} - pytest tests/integration --cov-append ${{ env.COVERAGE_ARGS }} pip install coveralls coveralls --service=github - # All other python versions: just run tests - - name: Run tests - if: ${{ matrix.python-version != env.LATEST_PY_VERSION }} - run: | - source $VENV - pytest --numprocesses=auto tests/unit - pytest tests/integration - # Run code analysis checks analyze: |