Skip to content

feat: ✨ add years, months, days methods to relativedelta #24

feat: ✨ add years, months, days methods to relativedelta

feat: ✨ add years, months, days methods to relativedelta #24

Workflow file for this run

name: test
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.lock
pip install -e .
- name: ruff
run: |
ruff .
- name: black
run: |
black --check .
- name: mypy
run: |
mypy urelativedelta/ tests/
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "pypy3.9", "pypy3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.lock
pip install -e .
- name: pytest
run: |
pytest -W error .