Skip to content

Bump urllib3 from 1.26.12 to 1.26.17 #58

Bump urllib3 from 1.26.12 to 1.26.17

Bump urllib3 from 1.26.12 to 1.26.17 #58

Workflow file for this run

---
name: CI
on: pull_request
jobs:
test:
strategy:
fail-fast: true
matrix:
os: [ "ubuntu-latest" ]
python-version: ["3.11"]
runs-on: ${{ matrix.os }}
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: password
POSTGRES_DB: slurpertest
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Load cached Poetry installation
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-0
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached virtualenvs
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install project
run: poetry install --no-interaction
- name: Run tests
run: |
poetry run pytest --cov-report=xml
env:
DATABASE_URL: postgresql://postgres:password@localhost:5432/slurpertest
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true