File tree Expand file tree Collapse file tree 3 files changed +452
-43
lines changed
Expand file tree Collapse file tree 3 files changed +452
-43
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments