rename functorch to functorch_test (#49) #73
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: Base tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
linux-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | |
- name: Setup miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: 3.8 | |
activate-environment: build | |
miniconda-version: 4.7.12 | |
- name: Install PyTorch | |
run: | | |
python3 -mpip install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu | |
python3 -c "import torch;print('All Ok!')" | |
- name: Install Dependencies | |
run: | | |
python3 -mpip install -r requirements.txt | |
- name: Run test | |
run: | | |
python run_test.py | |