-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (44 loc) · 1.36 KB
/
performance.yml
File metadata and controls
50 lines (44 loc) · 1.36 KB
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
name: performance
on:
# push:
# branches: [ main ]
# paths: [ '**.py', 'src/**' ]
workflow_dispatch:
concurrency:
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'alibaba/code-data-share-for-python' }}
jobs:
perf-import:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
- uses: s-weigand/setup-conda@v1
with:
conda-channels: conda-forge
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install nox pyperf
- name: Perf importing third-party packages
run: |
sh scripts/perf_import.sh
pyperformance:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
- uses: s-weigand/setup-conda@v1
with:
conda-channels: conda-forge
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install nox pyperf
- name: Pyperformance tests against cds
run: |
sh scripts/pyperformance.sh