This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
Bump requests from 2.31.0 to 2.32.0 #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: Run tests | |
jobs: | |
test: | |
name: lint and test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
env: | |
HTTPOBS_DATABASE_HOST: fakehost | |
HTTPOBS_DATABASE_PASS: foo | |
HTTPOBS_DATABASE_USER: bar | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "poetry" | |
- run: poetry install | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Run pre-commit against all files | |
run: poetry run pre-commit run --all-files | |
- name: Run nose tests | |
run: poetry run nosetests httpobs/tests --with-coverage --cover-package=httpobs |