Skip to content

release: v3.0.1

release: v3.0.1 #58

Workflow file for this run

name: pip-test
on:
push:
branches: ["main"]
paths-ignore:
- "**.md"
- "LICENSE"
pull_request:
branches: ["main"]
paths-ignore:
- "**.md"
- "LICENSE"
workflow_dispatch:
env:
GITHUB_ACTIONS: true
jobs:
build-wheel:
strategy:
matrix:
python-version: ["3.11"]
poetry-version: ["1.8.3"]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Build package
run: |
make build
- name: upload
uses: actions/upload-artifact@v3
with:
name: wheel
path: dist/*.whl
pip-test:
needs: [build-wheel]
strategy:
matrix:
os-version: ["ubuntu-20.04", "macos-13", "macos-14"]
python-version: ["3.11"]
runs-on: ${{ matrix.os-version }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/download-artifact@v3
with:
name: wheel
path: dist
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install numpy==1.26.4
cd dist
pip install *.whl
- name: Install PyTorch 2.2.2 with CUDA
if: matrix.os-version == 'windows-latest'
run: |
pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cu121
- name: Install PyTorch 2.2.2
if: matrix.os-version != 'windows-latest'
run: |
pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2
- name: Test pip
run: |
cd scripts
python gen_config.py
python CItestpip.py