diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index ab3a6e1..0cd6de0 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -9,11 +9,11 @@ jobs: name: 🧹 Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry - run: pipx install poetry==1.4.2 + run: pipx install poetry==1.7.1 - name: Set up Python 3.11 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11" cache: 'poetry' @@ -27,7 +27,7 @@ jobs: strategy: matrix: os: [Ubuntu, macOS, Windows] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] include: - os: Ubuntu image: ubuntu-latest @@ -37,13 +37,13 @@ jobs: image: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: Install poetry - run: pipx install poetry==1.4.2 + run: pipx install poetry==1.7.1 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 id: python-setup with: python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 526e94d..9ca6c41 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,11 +9,11 @@ jobs: name: 📦 Publish runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry - run: pipx install poetry==1.4.2 + run: pipx install poetry==1.7.1 - name: Set up Python 3.11 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11" cache: 'poetry' diff --git a/poetry.lock b/poetry.lock index 49b9445..0402a78 100644 --- a/poetry.lock +++ b/poetry.lock @@ -817,19 +817,19 @@ pytest = ">=4.6" testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtualenv"] [[package]] -name = "pytest-freezegun" -version = "0.4.2" -description = "Wrap tests with fixtures in freeze_time" +name = "pytest-freezer" +version = "0.4.8" +description = "Pytest plugin providing a fixture interface for spulec/freezegun" optional = false -python-versions = "*" +python-versions = ">= 3.6" files = [ - {file = "pytest-freezegun-0.4.2.zip", hash = "sha256:19c82d5633751bf3ec92caa481fb5cffaac1787bd485f0df6436fd6242176949"}, - {file = "pytest_freezegun-0.4.2-py2.py3-none-any.whl", hash = "sha256:5318a6bfb8ba4b709c8471c94d0033113877b3ee02da5bfcd917c1889cde99a7"}, + {file = "pytest_freezer-0.4.8-py3-none-any.whl", hash = "sha256:644ce7ddb8ba52b92a1df0a80a699bad2b93514c55cf92e9f2517b68ebe74814"}, + {file = "pytest_freezer-0.4.8.tar.gz", hash = "sha256:8ee2f724b3ff3540523fa355958a22e6f4c1c819928b78a7a183ae4248ce6ee6"}, ] [package.dependencies] -freezegun = ">0.3" -pytest = ">=3.0.0" +freezegun = ">=1.0" +pytest = ">=3.6" [[package]] name = "pytest-randomly" @@ -1104,4 +1104,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "3fcf3aaa65eebc4b03fb572adb887820d4d754d8617f146161f05b094e09d479" +content-hash = "3364c58b7d42467fe9393662405803cf544a2308605b588fcdd4a00ea87172b8" diff --git a/pyproject.toml b/pyproject.toml index 64e3d24..9031da1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,7 @@ python-dateutil = "^2.8" requests-mock = "^1.7" pytest = "^7" pytest-cov = "^4" -pytest-freezegun = "^0.4" +pytest-freezer = "^0.4" pytest-randomly = "^3.11" pytest-subtests = "^0.10" flake8 = "^3.7"