From 81bbe96259884194b9df9a3a43b1ff2d75a8d123 Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 5 Oct 2023 09:02:44 +1300 Subject: [PATCH] Fix publish --- .github/workflows/publish.yml | 6 +++--- pyproject.toml | 1 + requirements.txt | 4 ++-- test-requirements.txt | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f6cb1e0..55f8c55 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: publish +name: Publish to PyPI on: release: @@ -9,13 +9,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Get history and tags for SCM versioning to work run: | git fetch --prune --unshallow git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.x' - name: Install dependencies diff --git a/pyproject.toml b/pyproject.toml index dab1b51..668573a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,6 +50,7 @@ exclude_lines = [ "if __name__ == .__main__.:" # isn't run ] +[tool.tox] legacy_tox_ini = """ [tox] envlist = py311, lint diff --git a/requirements.txt b/requirements.txt index 1d7881c..8c0b043 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -pytest==7.1.2 -loguru==0.6.0 +pytest==7.4.2 +loguru==0.7.2 diff --git a/test-requirements.txt b/test-requirements.txt index 428d641..606e436 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,3 +1,3 @@ -pytest-cov==3.0.0 -tox==4.4.8 +pytest-cov==4.1.0 +tox==4.11.3 -r requirements.txt