-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (57 loc) · 2.03 KB
/
fdr_performance.yml
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
54
55
56
57
58
59
60
on:
pull_request:
types: [ labeled ]
push:
branches: [ main, development ]
workflow_dispatch:
name: FDR performance test
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
fdr_performance_testing:
if: contains(github.event.pull_request.labels.*.name, 'test:fdr') || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
name: FDR performance testing
runs-on: AlphaDIA
env: # Or as an environment variable
NEPTUNE_API_TOKEN: ${{ secrets.NEPTUNE_FDR_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.11
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Conda info
shell: bash -l {0}
run: conda info
- name: Pip installation with all loose dependencies
shell: bash -l {0}
run: |
cd misc
. ./pip_install.sh stable,test
- name: Run legacy classifier
env: # Or as an environment variable
NEPTUNE_API_TOKEN: ${{ secrets.NEPTUNE_FDR_TOKEN }}
shell: bash -l {0}
run: |
conda activate alphadia
python tests/performance_tests/fdr_test.py \
--classifier legacy_new_batching \
--threads 4 \
--neptune-tag github-action \
--neptune-tag "branch:${{ steps.extract_branch.outputs.branch }}"
- name: Run binary classifier
env: # Or as an environment variable
NEPTUNE_API_TOKEN: ${{ secrets.NEPTUNE_FDR_TOKEN }}
shell: bash -l {0}
run: |
conda activate alphadia
python tests/performance_tests/fdr_test.py \
--classifier binary \
--threads 4 \
--neptune-tag github-action \
--neptune-tag "branch:${{ steps.extract_branch.outputs.branch }}"