Skip to content

Commit

Permalink
More fiddling around with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostofGoes committed Jun 3, 2023
1 parent 88381e2 commit ca1034e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,16 @@ jobs:
# uses: snok/install-poetry@v1
uses: Gr1N/setup-poetry@v8
- name: Install dependencies (poetry)
run: poetry install --only=main,lint,ci --no-interaction
run: poetry install --no-interaction --only=main,ci,lint
- name: Run lint checks
run: poetry run tox -e check
run: poetry run tox --quiet -e check
test:
name: Run tests
runs-on: ${{ matrix.platform }}
# Workaround to disable pip upgrade warnings until fixed in setup-python
# See: https://github.com/actions/setup-python/issues/532
env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
# # Required for snok/install-poetry
# # https://github.com/snok/install-poetry/tree/v1/#running-on-windows
# defaults:
# run:
# shell: bash
strategy:
fail-fast: false
# Versions available:
Expand Down Expand Up @@ -82,10 +77,10 @@ jobs:
python -c "import os; print('os.name: %s' % str(os.name))"
python -c "import platform; print('platform.uname(): %s' % str(platform.uname()))"
- name: Install dependencies (poetry)
run: poetry install --no-interaction
run: poetry install --no-interaction --only=main,ci,test
# TODO: fix benchmark results (maybe a separate Job?)
- name: Run tests
run: poetry run tox
run: poetry run tox --quiet
- uses: codecov/codecov-action@v3
with:
# codecov is annoying. Not sure why I'm still using it,
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ platform =
windows: win32
allowlist_externals = poetry
commands_pre =
poetry install --no-root --sync --no-interaction
poetry install --no-root --sync --no-interaction --only=main,ci,lint,test --quiet
; TODO: --benchmark-enable?
commands =
poetry run pytest \
Expand Down

0 comments on commit ca1034e

Please sign in to comment.