Skip to content

Commit

Permalink
Update pings
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre.delaunay committed Sep 13, 2024
1 parent 0548deb commit d0b277f
Show file tree
Hide file tree
Showing 25 changed files with 879 additions and 346 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/tests_unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
# Allow manual triggers
workflow_dispatch:

env:
PIP_CACHE_DIR: /home/runner/work/milabench/milabench/cache

jobs:
tests:
Expand All @@ -27,6 +29,15 @@ jobs:
cancel-in-progress: true

steps:
- uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-codeql: 'true'
remove-haskell: 'true'
remove-android: 'true'
build-mount-path: /home/runner/work/milabench/
root-reserve-mb: 20000

- uses: actions/checkout@v3

- uses: actions/setup-python@v5
Expand All @@ -35,24 +46,25 @@ jobs:

- name: dependencies
run: |
cd /home/runner/work/milabench/milabench
pip install virtualenv
virtualenv ./env
source ./env/bin/activate
#
pip install -U pip
pip install poetry
poetry env use python3.10
source $(poetry env info -p)/bin/activate
poetry export --dev -f requirements.txt --output requirements-dev.txt
#
# poetry doesnot work when installing those !?
#
pip install antlr4-python3-runtime==4.9.3
pip install -e .
pip install -e benchmate
#
#
#
poetry install --with dev
pip install coverage pytest-regressions pytest-cov pytest
- name: Simple Template
run: |
source $(poetry env info -p)/bin/activate
source ./env/bin/activate
milabench new --name simplebench --template simple
cd benchmarks/simplebench
make tests
Expand All @@ -61,7 +73,7 @@ jobs:
- name: Voir Template
run: |
source $(poetry env info -p)/bin/activate
source ./env/bin/activate
milabench new --name voirbench --template voir
cd benchmarks/voirbench
make tests
Expand All @@ -76,7 +88,7 @@ jobs:
env:
HUGGING_FACE_TOKEN: ${{ secrets.HUGGING_FACE_TOKEN}}
run: |
source $(poetry env info -p)/bin/activate
source ./env/bin/activate
coverage run --source=milabench -m pytest --ignore=tests/integration tests/ -vv -x
coverage report -m
coverage xml
Expand Down
Loading

0 comments on commit d0b277f

Please sign in to comment.