Merge pull request #847 from pfnet/linshokaku-patch-1 #772
Workflow file for this run
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
name: "Pre-review Tests" | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
torch: ['1.13.*', '2.0.*', '2.1.*', '2.2.*', '2.3.*', '2.4.*'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{ matrix.torch }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install | |
run: | | |
pip install -U pip wheel | |
pip install -e . -r ./tests/requirements.txt torch==${{ matrix.torch }} --extra-index-url https://download.pytorch.org/whl/cpu | |
# Test PPE is importable with minimum dependency | |
python -c 'import pytorch_pfn_extras' | |
- name: Code Style | |
run: | | |
make lint | |
- name: Code Style (Examples) | |
run: | | |
make example_lint | |
- name: Test CPU only | |
run: | | |
make cputest |