Skip to content

back down

back down #109

Workflow file for this run

name: build
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: [ '3.6.x', '3.7.x', '3.8.x', '3.9.x' ]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5.6.0
with:
python-version: ${{ matrix.python }}
- name: install dependencies for the minor version
run: |
python -m venv venv
. venv/bin/activate
export version=$(grep -v '^$' ${GITHUB_WORKSPACE}/requirements.txt | grep requests | awk -F'=' '{print $2}' )
pip install requests==$(echo $version)
- name: run tests
run: |
. venv/bin/activate
make test
deactivate
- name: reinstall to the latest version
run: |
python -m venv venv
. venv/bin/activate
pip install --upgrade requests
- name: run tests again
run: |
. venv/bin/activate
make test