-
Notifications
You must be signed in to change notification settings - Fork 18
58 lines (54 loc) · 1.61 KB
/
python_test.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Python Test
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-python-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: sudo apt-get install -y cmake nasm
- name: Build and test
run: make test-python
# NOTE: there's a systematic fail with the ci on macos
# test-python-macos:
# runs-on: macos-latest
# steps:
# - uses: ilammy/setup-nasm@v1
# - uses: actions/checkout@v4
# - name: Set up Python 3.8
# uses: actions/setup-python@v5
# with:
# python-version: 3.8
# architecture: x64
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# target: x86_64-apple-darwin
# override: true
# - uses: messense/maturin-action@v1
# with:
# command: build
# maturin-version: latest
# args: --target x86_64-apple-darwin --out dist -m kornia-py/Cargo.toml
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip |
# python -m pip install dist/*.whl |
# python -m pip install pytest numpy |
# python -m pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
# - name: Build and test
# run: pytest kornia-py/tests