Skip to content

Commit

Permalink
fix: gh actions and tox
Browse files Browse the repository at this point in the history
  • Loading branch information
John San Soucie committed Oct 1, 2023
1 parent 28a188c commit 86dba67
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 20 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
20 changes: 5 additions & 15 deletions .github/workflows/pull-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Empty file added .github/workflows/test.yml
Empty file.
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 86dba67

Please sign in to comment.