Skip to content

Commit

Permalink
Add unit test run
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre.delaunay committed Jul 3, 2024
1 parent f2cc75f commit edbd8cf
Show file tree
Hide file tree
Showing 7 changed files with 931 additions and 926 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tests
name: run

on:
# Runs every sunday
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/tests_unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: unit

on:
push:

# Runs for pull requests
pull_request:
branches:
- master

# Runs on publish
release:
types:
[published]

# Allow manual triggers
workflow_dispatch:


jobs:
tests:
runs-on: ubuntu-latest

# Cancel previous jobs if a new version was pushed
concurrency:
group: "${{ github.ref }}-${{ matrix.arch }}"
cancel-in-progress: true

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: dependencies
run: |
pip install poetry
poetry install --with dev
- name: tests
run: |
pytest --ignore=tests/integration tests/
2 changes: 1 addition & 1 deletion config/slurm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ multi-node-full:
- --exclusive
- --nodes=2
- --cpus-per-task=128
- --time=1:30:00
- --time=2:00:00
- --ntasks-per-node=1
- --mem=0

Expand Down
6 changes: 3 additions & 3 deletions milabench/_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""This file is generated, do not modify"""

__tag__ = "v0.1.0-15-gd669febd"
__commit__ = "d669febd9ed580f0c09e3e7b50e81ead50462aa5"
__date__ = "2024-07-02 11:51:22 -0400"
__tag__ = "v0.1.0-20-gf2cc75f8"
__commit__ = "f2cc75f8a4728dcac223c91153119b43fec05698"
__date__ = "2024-07-03 12:37:48 -0400"
1,802 changes: 882 additions & 920 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ psutil = "^5.9.5"
importlib-resources = "^6.1.0"
filelock = "^3.15.3"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
black = ">=21.10b0"
isort = "^5.10.1"
flake8 = "^4.0.1"
Expand Down

0 comments on commit edbd8cf

Please sign in to comment.