From b8ff387fd7f24ad745425579d769d12fdf76c96c Mon Sep 17 00:00:00 2001 From: Matthew McLaughlin Date: Thu, 5 Sep 2024 16:32:18 -0700 Subject: [PATCH] wip: fix gh actions --- .github/workflows/main.yml | 18 ++++++++++++++++-- tox.ini | 6 ++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ab4b7c3..8f5bb4f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ env: COVERAGE_PYTHON_VERSION: "3.12" jobs: - tests: + tests: name: "Python ${{ matrix.python-version }}" runs-on: "ubuntu-latest" @@ -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: @@ -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" diff --git a/tox.ini b/tox.ini index ebede07..035e180 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =