diff --git a/.github/workflows/integration.yml b/.github/workflows/tests_integration.yml similarity index 100% rename from .github/workflows/integration.yml rename to .github/workflows/tests_integration.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests_run.yml similarity index 99% rename from .github/workflows/tests.yml rename to .github/workflows/tests_run.yml index ae4416d2e..41b8a5fb3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests_run.yml @@ -1,4 +1,4 @@ -name: tests +name: run on: # Runs every sunday diff --git a/.github/workflows/tests_unit.yml b/.github/workflows/tests_unit.yml new file mode 100644 index 000000000..9c161d4ec --- /dev/null +++ b/.github/workflows/tests_unit.yml @@ -0,0 +1,40 @@ +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: + # 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: | + poetry install --with dev + + - name: tests + run: | + pytest --ignore=tests/integration tests/ diff --git a/config/slurm.yaml b/config/slurm.yaml index f6622a8f3..fe6c7a631 100644 --- a/config/slurm.yaml +++ b/config/slurm.yaml @@ -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 diff --git a/milabench/_version.py b/milabench/_version.py index 0b81ce605..abe31fb47 100644 --- a/milabench/_version.py +++ b/milabench/_version.py @@ -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" diff --git a/pyproject.toml b/pyproject.toml index 9c64e7f17..d9c101a69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"