forked from openvinotoolkit/datumaro
-
Notifications
You must be signed in to change notification settings - Fork 16
36 lines (36 loc) · 1 KB
/
pr_checks.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
name: CI
on:
push:
branches:
- 'master'
pull_request:
types: [edited, ready_for_review, opened, synchronize, reopened]
defaults:
run:
shell: bash
jobs:
build_and_test:
if: |
github.event.pull_request.draft == false &&
!startsWith(github.event.pull_request.title, '[WIP]') &&
!startsWith(github.event.pull_request.title, '[Dependent]')
strategy:
fail-fast: false
matrix:
os: ['macos-12', 'ubuntu-22.04', 'windows-2022']
python-version: ['3.8', '3.9', '3.10', '3.11']
name: build and test (${{ matrix.os }}, Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Installing python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Installing dependencies
run: |
pip install -e '.[default,tf,tfds]' pytest
- name: Unit testing
run: |
pytest -v
datum -h