Skip to content

add required deps for testing full #237

add required deps for testing full

add required deps for testing full #237

Workflow file for this run

name: ci-profiling
# Bump 3
on: push
jobs:
test-profile:
name: Profile ada-py-full
if: ${{ contains(github.event.head_commit.message, '[profile]') }}
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: mamba-org/setup-micromamba@v1 # https://github.com/mamba-org/setup-micromamba
with:
cache-env: true
environment-name: ada
channels: conda-forge
channel-priority: strict
environment-file: conda/environment.core.yml
create-args: >-
python=3.11
jupyterlab
pythreejs
pyparsing
pytest
scalene
- name: pip install
run: |
pip install -e .
- name: Profile using scalene
run: scalene --json -m pytest ./tests --ignore=./tests/docker/ --outfile=profile.json
- name: Profile using cProfile
run: python -m cProfile -o profile -m pytest tests --ignore=./tests/docker
- name: Create Release Package
uses: softprops/action-gh-release@v1
with:
files: |
profile.json
profile
tag_name: "Ada-py profile $(date +'%Y-%m-%d %H:%M')"
body: "Profile produced on commit ${{ github.sha }}"