-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (47 loc) · 1.49 KB
/
tests.yml
File metadata and controls
54 lines (47 loc) · 1.49 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: "3.8"
torch-version: "1.13.1"
matplotlib-version: "3.7"
pandas-version: "1.5"
tqdm-version: "4.65"
- python-version: "3.9"
torch-version: "1.13.1"
matplotlib-version: "3.8"
pandas-version: "1.5"
tqdm-version: "4.65"
# - python-version: "3.10"
# torch-version: "2.0.1"
# matplotlib-version: "3.9"
# pandas-version: "2.0"
# tqdm-version: "4.65"
# - python-version: "3.11"
# torch-version: "2.0.1"
# matplotlib-version: "3.10"
# pandas-version: "2.0"
# tqdm-version: "4.66"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "torch==${{ matrix.torch-version }}" \
"matplotlib==${{ matrix.matplotlib-version }}" \
"pandas==${{ matrix.pandas-version }}" \
"tqdm==${{ matrix.tqdm-version }}" \
ipykernel
pip install .
pip install pytest
- name: Run tests
run: pytest