Merge pull request #358 from MannLabs/zerodivision #543
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |