-
Notifications
You must be signed in to change notification settings - Fork 16
44 lines (42 loc) · 1.02 KB
/
test-torchfix.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
38
39
40
41
42
43
44
name: Test TorchFix
on:
pull_request:
workflow_dispatch:
jobs:
test-torchfix:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-latest-large, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show CPU architecture
if: matrix.os == 'macos-latest-large' || matrix.os == 'macos-latest'
run: |
uname -m
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Upgrade build dependencies
run: |
pip3 install -U pip
pip3 install -U setuptools
- name: Install TorchFix
run: |
pip3 install ".[dev]"
- name: Run torchfix CLI
run: |
torchfix --help
- name: Run pytest
run: |
pytest -vv tests
- name: Run flake8
run: |
flake8
- name: Run mypy
run: |
mypy .
- name: Run black
run: |
black --check .