Skip to content

Commit

Permalink
Standardize workflow with my other code
Browse files Browse the repository at this point in the history
  • Loading branch information
pronovic committed Mar 17, 2021
1 parent 5c899cf commit 483e1bd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 483e1bd

Please sign in to comment.