Skip to content

Commit 693899a

Browse files
authored
Update ci.yml
1 parent ee4599c commit 693899a

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
name: CI for torchviz
2-
3-
on:
4-
push:
5-
branches:
6-
- ci
7-
pull_request:
8-
branches:
9-
- ci
10-
11-
jobs:
12-
test:
13-
name: Test on Python ${{ matrix.python-version }}
14-
runs-on: ubuntu-latest
15-
16-
strategy:
17-
matrix:
18-
python-version: [3.8, 3.9, 3.10, 3.11]
19-
20-
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v3
23-
24-
- name: Set up Python
25-
uses: actions/setup-python@v4
26-
with:
27-
python-version: ${{ matrix.python-version }}
28-
29-
- name: Install system dependencies
30-
run: |
31-
sudo apt-get update
32-
sudo apt-get install -y graphviz
33-
34-
- name: Install Python dependencies
35-
run: |
36-
python -m pip install --upgrade pip
37-
pip install .
38-
pip install pytest
39-
40-
- name: Run tests
41-
run: |
42-
pytest test/
2+
3+
on:
4+
push:
5+
branches:
6+
- ci
7+
pull_request:
8+
branches:
9+
- ci
10+
11+
jobs:
12+
test:
13+
name: Test on Python ${{ matrix.python-version }}
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
python-version: [3.8, 3.9, 3.10, 3.11]
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
29+
- name: Install system dependencies
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install -y graphviz
33+
34+
- name: Install Python dependencies
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install .
38+
pip install pytest
39+
40+
- name: Run tests
41+
run: |
42+
pytest test/

0 commit comments

Comments
 (0)