Skip to content

Commit 513a74a

Browse files
authored
Merge pull request #98 from paul-tqh-nguyen/profile
Profiling
2 parents 831f0b7 + e39f258 commit 513a74a

File tree

3 files changed

+452
-43
lines changed

3 files changed

+452
-43
lines changed

.github/workflows/debug.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Debug CI Jobs
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
debug_enabled:
7+
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
8+
required: false
9+
default: false
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
os:
16+
- ubuntu-latest
17+
# - macos-latest
18+
pyver:
19+
- 3.8
20+
runs-on: ${{ matrix.os }}
21+
env:
22+
ARTIFACT_NAME: built_package_py${{matrix.pyver}}_${{matrix.os}}.tar.bz2
23+
defaults:
24+
run:
25+
shell: bash -l {0}
26+
steps:
27+
# Enable tmate debugging of manually-triggered workflows if the input option was provided
28+
- name: Checkout
29+
uses: actions/checkout@v2
30+
with:
31+
fetch-depth: 0
32+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
33+
- name: Create env
34+
uses: conda-incubator/setup-miniconda@v2
35+
with:
36+
auto-update-conda: true
37+
activate-environment: mg
38+
environment-file: continuous_integration/environment.yml
39+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
40+
- name: Update env
41+
run: |
42+
conda install -q conda-build
43+
pip install -e .
44+
conda list
45+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
46+
- name: Setup tmate session
47+
uses: mxschmitt/action-tmate@v3
48+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}

0 commit comments

Comments
 (0)