Skip to content

Commit

Permalink
wip: fix gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-m-mclaughlin committed Sep 5, 2024
1 parent 3eeb673 commit b8ff387
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
COVERAGE_PYTHON_VERSION: "3.12"

jobs:
tests:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: "ubuntu-latest"

Expand All @@ -22,6 +22,19 @@ jobs:
python-version: ["3.10", "3.11", "3.12"]

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 dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install tox tox-gh-actions
# - name: Test with tox
# run: tox


- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
Expand All @@ -34,7 +47,8 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade coverage[toml] tox tox-gh-actions
- name: "Run tox targets for ${{ matrix.python-version }}"
run: "python -m tox"
# run: "python -m tox"
run: tox

# use a modern Python version for code coverage
- uses: "actions/setup-python@v5"
Expand Down
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ envlist =
lint
py{310, 311, 312}-{base,s3}

[gh-actions]
python =
3.10: lint, py-base, py-s3
3.11: lint, py-base, py-s3
3.12: lint, py-base, py-s3

[testenv]
usedevelop = True
deps =
Expand Down

0 comments on commit b8ff387

Please sign in to comment.