Skip to content

modify RunData init #68

modify RunData init

modify RunData init #68

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python Test
on:
push:
branches: [ main ]
pull_request:
types: [opened, synchronize]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
services:
redis:
image: redis:7
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: python -m pip install poetry
- name: Install dependencies
run: poetry install --with dev --all-extras
- name: Test with pytest
run: |
bash ./scripts/test.sh --cov-report=xml --disable-warnings
env:
REDIS_TEST_URI: redis://127.0.0.1
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == '3.10' }}
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true