-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from automl/development
Version 0.3.0
- Loading branch information
Showing
273 changed files
with
15,586 additions
and
17,381 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,35 @@ | ||
name: tests | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- development | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- name: Cache MNIST | ||
id: cache-mnist | ||
uses: actions/cache@v2 | ||
with: | ||
path: ./data/MNIST | ||
key: mnist | ||
- name: Cache Fast-downward build | ||
id: cache-fast-downward-build | ||
uses: actions/cache@v2 | ||
with: | ||
path: ./dacbench/envs/rl-plan/fast-downward | ||
key: fast-downward-build | ||
- name: Install Python 3 | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
- name: Install uv | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e.[dev,all] | ||
- name: Build fast-downward | ||
run: ./dacbench/envs/rl-plan/fast-downward/build.py | ||
- name: Run tests with pytest | ||
run: coverage run -m pytest --html=test-report.html | ||
- name: Run coverage | ||
python -m pip install uv | ||
uv venv | ||
- name: Activate virtualenv | ||
run: | | ||
coverage report | ||
coverage html | ||
- name: Archive code coverage results | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} | ||
with: | ||
name: code-coverage-report | ||
path: coverage_report | ||
- name: Archive test report | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} | ||
with: | ||
name: test-report | ||
path: | | ||
test-report.html | ||
assets | ||
. .venv/bin/activate | ||
which python | ||
echo PATH=$PATH >> $GITHUB_ENV | ||
- name: Install dependencies | ||
run: | | ||
git submodule update --init --recursive | ||
uv pip install -e ".[dev, docs, all, example]" | ||
- name: Run tests with pytest | ||
run: /home/runner/work/DACBench/DACBench/.venv/bin/python -m pytest tests |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[submodule "dacbench/envs/rl-plan"] | ||
path = dacbench/envs/rl-plan | ||
url = https://github.com/speckdavid/rl-plan.git | ||
[submodule "docs/_themes/sphinx_rtd_theme"] | ||
path = docs/_themes/sphinx_rtd_theme | ||
url = https://github.com/readthedocs/sphinx_rtd_theme.git |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
language_version: python3.10 | ||
exclude: dacbench/envs/fast-downward | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.4 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.2.2 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format |
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
Oops, something went wrong.