-
Notifications
You must be signed in to change notification settings - Fork 66
53 lines (41 loc) · 1.13 KB
/
profile.yml
File metadata and controls
53 lines (41 loc) · 1.13 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
51
52
53
name: profile
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
standard:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest]
defaults:
run:
shell: bash -l {0}
name: ${{ matrix.runs-on }} • x64 ${{ matrix.args }}
runs-on: ${{ matrix.runs-on }}
steps:
- name: Basic GitHub action setup
uses: actions/checkout@v3
- name: Set conda environment
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment-dev.yml
environment-name: myenv
cache-env: true
extra-specs: |
prettytable
setuptools_scm
scikit-build
xsimd
- name: Set dummy version
run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.0" >> $GITHUB_ENV
- name: Build and install Python module
working-directory: python-module
run: |
SKBUILD_CONFIGURE_OPTIONS="-DUSE_XSIMD=1" python -m pip install . -v
- name: Run Python profiling
working-directory: python-module
run: python -m unittest discover profiling