-
Notifications
You must be signed in to change notification settings - Fork 26
38 lines (31 loc) · 928 Bytes
/
base.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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