Skip to content

chore!: bump version to 12.0.0 and bump min dep versions #584

chore!: bump version to 12.0.0 and bump min dep versions

chore!: bump version to 12.0.0 and bump min dep versions #584

Workflow file for this run

name: Test
on:
push:
branches:
- master
- develop
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10', '3.12' ]
services:
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres:
image: postgres:16
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust # Obviously don't use this in production, ever
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch everything for the /service-info builder test
- uses: actions/setup-python@v5
name: Set up Python
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
run: python -m pip install 'poetry>=1.8.3,<1.9'
- name: Install dependencies
run: python -m poetry install --all-extras
- name: Test
run: mkdir -p tmp && poetry run pytest -svv --cov=bento_lib --cov-branch --cov-report=xml
env:
TEST_REDIS_HOST: localhost
TEST_REDIS_PORT: 6379
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
file: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
install:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10', '3.12' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Set up Python
with:
python-version: ${{ matrix.python-version }}
- name: Install bento_lib
run: python -m pip install .