refactor: Update handling of assigned attributes. #189
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: Test-examples-CI | |
on: | |
push: | |
branches: [ dev, main ] | |
pull_request: | |
branches: [ dev, main ] | |
env: | |
CI: true | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: [3.12] | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Make compile script executable | |
run: chmod +x ./mithril/cores/c/compile.sh | |
- name: Compile C code | |
run: | | |
pushd ./mithril/cores/c | |
./compile.sh | |
popd | |
- name: Install Python dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install torch==2.4.1 --index-url https://download.pytorch.org/whl/cpu | |
pip install --upgrade "jax[cpu]" | |
pip install -r requirements/dev.txt | |
pip install tiktoken | |
pip install transformers | |
pip install librosa | |
pip install einops | |
- name: Execute testcase unit tests | |
run: pytest -s test_examples/ |