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 77f56a8
Show file tree
Hide file tree
Showing 25 changed files with 878 additions and 342 deletions.
28 changes: 19 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/
temp-reserve-mb: 10000

- uses: actions/checkout@v3

- uses: actions/setup-python@v5
Expand All @@ -35,24 +46,23 @@ 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 doesnot work when installing those !?
#
pip install antlr4-python3-runtime==4.9.3
pip install -e .
pip install -e benchmate
#
#
#
poetry install --with dev
- 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 +71,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 +86,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 77f56a8

Please sign in to comment.