From 483e1bda3311835e98aef05d041192d7ff2c39fd Mon Sep 17 00:00:00 2001 From: "Kenneth J. Pronovici" Date: Wed, 17 Mar 2021 02:25:00 +0000 Subject: [PATCH] Standardize workflow with my other code --- .github/workflows/tox.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index d5f4f5e..70d5e16 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -27,9 +27,34 @@ jobs: with: virtualenvs-create: true virtualenvs-in-project: true + - name: Cache Poetry virtualenv + id: cached-poetry + uses: actions/cache@v2 + with: + path: .venv + key: venv-${{ runner.os }}-python${{ matrix.python }}-${{ hashFiles('**/poetry.lock') }} - name: Install Dependencies run: poetry install -v + if: steps.cached-poetry.outputs.cache-hit != 'true' - name: Run Tox test suite run: | poetry run which supybot-test # this is the only way to run the true Limnoria tests SUPYBOT_TEST=$(poetry run which supybot-test) poetry run tox -c .toxrc -e "checks,coverage" + - name: Upload coverage data to coveralls.io + run: poetry run coveralls --service=github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_FLAG_NAME: ${{ runner.os }}-python${{ matrix.python }} + COVERALLS_PARALLEL: true + coveralls: + name: Indicate completion to coveralls.io + needs: build + runs-on: ubuntu-latest + container: python:3-slim + steps: + - name: Finished + run: | + pip3 install --upgrade coveralls + coveralls --service=github --finish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}