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

Python 3.11 CI support #146

Merged
merged 11 commits into from
Oct 30, 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
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4.3.0
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -28,14 +28,14 @@ jobs:
export PATH="$HOME/.poetry/env:$PATH"

- name: Set up cache
uses: actions/cache@v3.0.1
uses: actions/cache@v3.0.11
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
make install-ci

- name: Run style checks
run: |
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,16 @@ poetry-remove:
.PHONY: add-torch-gpu
add-torch-gpu:
poetry run poe upgrade-pip
poetry run pip uninstall torch -y
poetry run poe torch-cuda11

.PHONY: install
install:
poetry install --no-dev
poetry install

.PHONY: install-dev
install-dev:
poetry install --extras all
poetry install --all-extras --with lint,docs --sync
# -poetry run mypy --install-types --non-interactive ./
poetry run pre-commit install
poetry run pre-commit autoupdate
Expand All @@ -63,6 +64,10 @@ install-gpu: install add-torch-gpu
.PHONY: install-dev-gpu
install-dev-gpu: install-dev add-torch-gpu

.PHONY: install-ci
install-ci:
poetry install --with lint

.PHONY: update-deps
update-deps:
poetry lock && poetry export --without-hashes > requirements.txt
Expand Down
Loading