Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 Fix CI setup #37

Merged
merged 5 commits into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Cache
uses: actions/cache@v3
env:
cache-name: cache-0
cache-name: cache-1
with:
path: |
.nox
Expand All @@ -44,11 +44,12 @@ jobs:
python -m pip install --upgrade pip
pip install nox
- name: Lint
if: matrix.python-version == '3.9'
run: |
nox -s lint
nox -s lint --python ${{ matrix.python-version }} --no-error-on-external-run
- name: Build
run: |
nox -s build --python ${{ matrix.python-version }}
nox -s build --python ${{ matrix.python-version }} --no-error-on-external-run
- name: Codecov
if: matrix.python-version == '3.9'
uses: codecov/codecov-action@v2
Expand Down
4 changes: 3 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
import nox

nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = False
nox.options.default_venv_backend = None


@nox.session
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"])
def lint(session: nox.Session) -> None:
session.install("pre-commit")
session.run("pre-commit", "install")
Expand Down