Attempt to improve performance of calling Python callbacks #48
Workflow file for this run
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
--- | |
name: QA | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
types: ['opened', 'synchronize', 'reopened'] | |
jobs: | |
qa-ubuntu-conda: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10', '3.11', '3.12'] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Setup conda environment | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: test | |
environment-file: environment-linux.yaml | |
miniforge-version: latest | |
mamba-version: '*' | |
python-version: ${{ matrix.python-version }} | |
- name: Get Date | |
id: get-date | |
run: echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")" | |
- name: Cache Conda env | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.CONDA }}/envs | |
key: ${{ runner.os }}-conda-${{ steps.get-date.outputs.date }}-${{ hashFiles('environment-linux.yaml') }} | |
id: cache | |
- name: Update environment | |
run: | | |
conda env update --file environment-linux.yaml --name test | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: Set up Julia | |
uses: julia-actions/setup-julia@v2 | |
with: | |
version: '1.11' | |
- name: Cache Julia artifacts | |
uses: julia-actions/cache@v2 | |
- name: Activate Julia environment | |
run: | | |
julia --project=. -e "using Pkg; Pkg.instantiate()" | |
- name: Set up environment variables | |
run: | | |
source env.sh | |
echo "OIF_IMPL_ROOT_DIR=$OIF_IMPL_ROOT_DIR" >> $GITHUB_ENV | |
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV | |
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV | |
echo "JULIA_PROJECT=$JULIA_PROJECT" >> $GITHUB_ENV | |
- name: Show info | |
run: | | |
conda info | |
type gcc | |
type g++ | |
type python | |
type pip | |
type julia | |
git status | |
echo "OIF_IMPL_ROOT_DIR = ${OIF_IMPL_ROOT_DIR}" | |
echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH" | |
echo "PYTHONPATH = $PYTHONPATH" | |
echo "LD_LIBRARY_PATH = $LD_LIBRARY_PATH" | |
- name: Build | |
run: | | |
make | |
- name: Run tests | |
run: | | |
make test |