diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 716d6c4..1583de6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,18 @@ on: repository_dispatch: types: [release-made] jobs: + build: + strategy: + max-parallel: 1 + matrix: + os: [ubuntu-20.04] + python-version: ["3.8", "3.9", "3.10", "3.11"] + uses: ./.github/workflows/test.yml + with: + python-version: ${{ matrix.python-version }} + os: ${{ matrix.os }} deploy: + needs: build runs-on: ubuntu-20.04 steps: - name: Checkout @@ -18,10 +29,7 @@ jobs: python-version: 3.9 - name: Install build meta-dependencies run: | - pip install poetry tox - - name: Test with tox - run: | - tox -v + pip install poetry tox-gh>=1.2 - name: Build sdists and wheels with Poetry run: | poetry build diff --git a/.github/workflows/pull-test.yml b/.github/workflows/pull-test.yml index f4afe23..0757952 100644 --- a/.github/workflows/pull-test.yml +++ b/.github/workflows/pull-test.yml @@ -11,18 +11,8 @@ jobs: max-parallel: 1 matrix: os: [ubuntu-20.04] - python-version: ["3.9"] - runs-on: "${{ matrix.os }}" - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: "Set up Python ${{ matrix.python-version }}" - uses: actions/setup-python@v4 - with: - python-version: "${{ matrix.python-version }}" - - name: Install build meta-dependencies - run: | - pip install tox poetry - - name: Test with tox - run: | - tox -v + python-version: ["3.8", "3.9", "3.10", "3.11"] + uses: ./.github/workflows/test.yml + with: + python-version: ${{ matrix.python-version }} + os: ${{ matrix.os }} diff --git a/.github/workflows/push-main.yml b/.github/workflows/push-main.yml index 06e65e5..eb0ab64 100644 --- a/.github/workflows/push-main.yml +++ b/.github/workflows/push-main.yml @@ -10,7 +10,7 @@ jobs: max-parallel: 1 matrix: os: [ubuntu-20.04] - python-version: ["3.9"] + python-version: ["3.11"] runs-on: "${{ matrix.os }}" steps: - name: Checkout diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e69de29 diff --git a/tox.ini b/tox.ini index cb89897..76b8246 100644 --- a/tox.ini +++ b/tox.ini @@ -73,3 +73,11 @@ exclude = .git dist/ import-order-style = google docstring-convention = google + +[gh] +python = + 3.12 = py312 + 3.11 = py311, pre-commit, coverage, bandit, flake8, mypy, docs + 3.10 = py310 + 3.9 = py39a + 3.8 = py38