Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Trajectories.jl instead #632

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .cspell/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@
"trilcol",
"mvnormlogpdf",
"mvnormals",
"Optimise"
"Optimise",
"xlabel",
"ylabel",
"optimising"
],
"ignoreWords": [],
"minWordLength": 5,
Expand All @@ -193,4 +196,4 @@
"\\{%.*%\\}", // liquid syntax
"/^\\s*```[\\s\\S]*?^\\s*```/gm" // Another attempt at markdown code blocks. https://github.com/streetsidesoftware/vscode-spell-checker/issues/202#issuecomment-377477473
]
}
}
123 changes: 67 additions & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ jobs:
run: |
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.develop(path="src/ReinforcementLearningCore")
Pkg.test("ReinforcementLearningCore")'

Expand All @@ -90,6 +92,9 @@ jobs:
run: |
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.develop(path="src/ReinforcementLearningCore")
Pkg.develop(path="src/ReinforcementLearningZoo")
Pkg.test("ReinforcementLearningZoo")'

Expand All @@ -103,6 +108,7 @@ jobs:
run: |
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.test("ReinforcementLearningEnvironments")'

Expand All @@ -111,13 +117,13 @@ jobs:
with:
paths: src/ReinforcementLearningDatasets

- name: Test RLDatasets
if: (steps.RLDatasets-changed.outputs.changed == 'true') || (contains(github.event.pull_request.labels.*.name, 'Integration Test'))
run: |
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningDatasets")
Pkg.test("ReinforcementLearningDatasets")'
# - name: Test RLDatasets
# if: (steps.RLDatasets-changed.outputs.changed == 'true') || (contains(github.event.pull_request.labels.*.name, 'Integration Test'))
# run: |
# julia --color=yes -e '
# using Pkg;
# Pkg.develop(path="src/ReinforcementLearningDatasets")
# Pkg.test("ReinforcementLearningDatasets")'

- uses: marceloprado/has-changed-path@v1
id: RLExperiments-changed
Expand All @@ -129,56 +135,61 @@ jobs:
run: |
julia --color=yes -e '
using Pkg;
Pkg.develop(path="src/ReinforcementLearningBase")
Pkg.develop(path="src/ReinforcementLearningEnvironments")
Pkg.develop(path="src/ReinforcementLearningCore")
Pkg.develop(path="src/ReinforcementLearningZoo")
Pkg.develop(path=".")
Pkg.develop(path="src/ReinforcementLearningExperiments")
Pkg.build("ReinforcementLearningExperiments")
Pkg.test("ReinforcementLearningExperiments")'

docs:
name: Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.arch }}
- run: python -m pip install --user matplotlib
- uses: julia-actions/setup-julia@v1
with:
version: '1.6'
- name: Build homepage
run: |
cd docs/homepage
julia --project --color=yes -e '
using Pkg; Pkg.instantiate();
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
using Franklin;
optimize()' > build.log

- name: Make sure homepage is generated without error
run: |
if grep -1 "Franklin Warning" build.log; then
echo "Franklin reported a warning"
exit 1
else
echo "Franklin did not report a warning"
fi

- name: Build docs
run: |
cd docs
julia --project --color=yes -e '
using Pkg; Pkg.instantiate();
include("make.jl")'
mv build homepage/__site/docs

- name: Deploy to the main repo
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' }}
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: JuliaReinforcementLearning/JuliaReinforcementLearning.github.io
force_orphan: true
publish_branch: master
publish_dir: ./docs/homepage/__site
# docs:
# name: Documentation
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Setup python
# uses: actions/setup-python@v1
# with:
# python-version: ${{ matrix.python-version }}
# architecture: ${{ matrix.arch }}
# - run: python -m pip install --user matplotlib
# - uses: julia-actions/setup-julia@v1
# with:
# version: '1.6'
# - name: Build homepage
# run: |
# cd docs/homepage
# julia --project --color=yes -e '
# using Pkg; Pkg.instantiate();
# using NodeJS; run(`$(npm_cmd()) install highlight.js`);
# using Franklin;
# optimize()' > build.log

# - name: Make sure homepage is generated without error
# run: |
# if grep -1 "Franklin Warning" build.log; then
# echo "Franklin reported a warning"
# exit 1
# else
# echo "Franklin did not report a warning"
# fi

# - name: Build docs
# run: |
# cd docs
# julia --project --color=yes -e '
# using Pkg; Pkg.instantiate();
# include("make.jl")'
# mv build homepage/__site/docs

# - name: Deploy to the main repo
# uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.event_name == 'push' }}
# with:
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# external_repository: JuliaReinforcementLearning/JuliaReinforcementLearning.github.io
# force_orphan: true
# publish_branch: master
# publish_dir: ./docs/homepage/__site
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ docs/experiments
# It records a fixed state of all packages used by the project. As such, it should not be
# committed for packages, but should be committed for applications that require a static
# environment.
# Manifest.toml
Manifest.toml

.vscode/*

Expand Down
Loading