-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: run some tests on python 3.11 as well (#454)
torch doesn't support 3.12 yet
- Loading branch information
1 parent
601a112
commit 1de5d28
Showing
2 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,14 +62,19 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10"] | ||
python-version: | ||
- "3.10" | ||
- "3.11" | ||
# torch for python 3.12 is not available yet | ||
# https://github.com/pytorch/pytorch/issues/110436 | ||
# - "3.12" | ||
os: ["ubuntu-latest"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
cache-dependency-path: requirements-dev.txt | ||
- name: Install dependencies | ||
|
@@ -96,25 +101,48 @@ jobs: | |
- name: Run mypy | ||
run: | | ||
make type-check | ||
pkg-smoke-test: | ||
build-wheel: | ||
name: Build Wheel | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: python -m pip install wheel | ||
- name: Build package | ||
run: python setup.py bdist_wheel | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist/*.whl | ||
smoke-test-wheel: | ||
needs: build-wheel | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install wheel | ||
- name: Build package | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: wheels | ||
path: dist | ||
- name: Install built wheel | ||
run: | | ||
python -m pip install dist/*.whl | ||
- name: Generate an image | ||
run: | | ||
imagine fruit --steps 10 --size 496 --seed 1 | ||
imagine fruit --steps 10 --size 512 --seed 1 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: images | ||
path: outputs/generated/*.jpg | ||
|
||
|
||
publish-docs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters