microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.4.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/linux_release_x86_64.yml

53lines · modecode

1name: LinuxRelease_x86_64
2
3on:
4 schedule:
5 # Run weekly on Monday 00:00
6 - cron: '00 00 * * MON'
7 push:
8 branches: [rel-*]
9 pull_request:
10 branches: [rel-*]
11 workflow_dispatch:
12
13jobs:
14 build:
15 if: github.event_name != 'pull_request' || startsWith( github.base_ref, 'rel-') || contains( github.event.pull_request.labels.*.name, 'run release CIs')
16 runs-on: ubuntu-latest
17 strategy:
18 matrix:
19 python-version: [3.6, 3.7, 3.8, 3.9]
20 architecture: ['x64']
21
22 steps:
23 - uses: actions/checkout@v2
24
25 - name: Set up Python ${{ matrix.python-version }}
26 uses: actions/setup-python@v1
27 with:
28 python-version: ${{ matrix.python-version }}
29 architecture: ${{ matrix.architecture }}
30
31 - name: Install python dependencies
32 run: |
33 python -m pip install --upgrade pip
34 python -m pip install numpy
35
36 - name: Build manylinux2014_x86_64
37 uses: docker://quay.io/pypa/manylinux2014_x86_64
38 with:
39 entrypoint: bash
40 args: .github/workflows/scripts/wheelbuilder.sh ${{ matrix.python-version }} manylinux2014_x86_64 ${{ github.event_name }}
41
42 - name: Test wheel with Python ${{ matrix.python-version }}
43 run: |
44 python -m pip install dist/*manylinux2014_x86_64.whl
45 python -m pip install pytest==5.4.3
46 python -m pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio==0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
47 python -m pip install -r requirements-dev.txt
48 pytest
49
50 - uses: actions/upload-artifact@v2
51 with:
52 name: manylinux_wheels
53 path: dist
54