onnx

Форк
0
/
weekly_mac_ci.yml 
62 строки · 2.1 Кб
1
# Copyright (c) ONNX Project Contributors
2
#
3
# SPDX-License-Identifier: Apache-2.0
4

5
# Weekly ci workflow for model zoo.
6
# Runs model checker/shape_inference/version_converter for all models
7
name: Weekly CI with the latest ONNX and ONNX Model Zoo
8

9
on:
10
  schedule:
11
    # run weekly on Sunday 23:59
12
    - cron:  '59 23 * * SUN'
13
  pull_request:
14
    branches: [main, rel-*]
15
  workflow_dispatch:
16

17
permissions:  # set top-level default permissions as security best practice
18
  contents: read
19

20
concurrency:
21
  group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' }}
22
  cancel-in-progress: true
23

24
jobs:
25
  build:
26
    if: github.event_name != 'pull_request' || contains( github.event.pull_request.labels.*.name, 'test ONNX Model Zoo')
27
    runs-on: macos-latest
28
    steps:
29
    - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
30
      name: Checkout repo
31
    - name: Checkout submodules
32
      shell: bash
33
      run: |
34
        auth_header="$(git config --local --get http.https://github.com/.extraheader)"
35
        git submodule sync --recursive
36
        git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
37
    - name: Set up Python
38
      uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
39
      with:
40
        python-version: '3.10'
41
    - name: Install dependencies
42
      shell: bash
43
      run: |
44
        set -e
45
        python -m pip install -q --upgrade pip
46
        python -m pip install -q -r requirements-release.txt
47

48
    - name: Build, install and test ONNX
49
      shell: bash
50
      run: |
51
        # Install protobuf from source
52
        export NUM_CORES=`sysctl -n hw.logicalcpu`
53
        source workflow_scripts/protobuf/build_protobuf_unix.sh $NUM_CORES $(pwd)/protobuf/protobuf_install
54
        # Build ONNX
55
        export CC=clang
56
        export CXX=clang++
57
        export ONNX_ML=1
58
        pip install -e . -v
59

60
    - name: Test all models with onnx.checker, onnx.shape_inference, onnx.version_converter
61
      run: |
62
        python workflow_scripts/test_model_zoo.py
63

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.