Skip to content

Commit

Permalink
update CI (#475)
Browse files Browse the repository at this point in the history
* update torch versions

* update upload artifact version

* update torch plateform

* change to also upload lock

* Empty-Commit to trigger CI

* pre-commit fix

---------

Co-authored-by: Timothee Mathieu <timothee.mathieu@inria.fr>
  • Loading branch information
JulienT01 and TimotheeMathieu authored Oct 10, 2024
1 parent 3370dda commit 495605f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types: [closed]

jobs:
versionjob:
version_lock_job:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
Expand All @@ -24,8 +24,9 @@ jobs:
- run: echo $MY_VERSION
- uses: snok/install-poetry@v1
- run: poetry version "v$MY_VERSION "
- run: poetry lock
- uses: EndBug/add-and-commit@v8
with:
add: 'pyproject.toml'
add: '["pyproject.toml", "poetry.lock"]'
default_author: github_actor
message: 'Writing version with github action [skip ci]'
message: 'Writing version and lock with github action [skip ci]'
2 changes: 1 addition & 1 deletion .github/workflows/ready_for_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: echo $PR_NUM > pr_num.txt

- name: Upload the PR number
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: pr_num
path: ./pr_num.txt
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ opencv-python = {version="*", optional=true}
ale-py = {version="*", optional=true}
stable-baselines3 = {version="*", optional=true}
tensorboard = {version="*", optional=true}
torch = [{version=">=2.0.0", markers = "sys_platform != 'darwin'", optional=true},{version=">=2.0.0, !=2.0.1, !=2.1.0, !=2.3.0, !=2.3.1", markers = "sys_platform == 'darwin'", optional=true}]
torch = [
{ version = ">=2.0.0,<2.3", platform = "darwin", optional=true },
{ version = ">=2.0.0,<2.3", platform = "linux", optional=true },
{ version = ">=2.0.0,<2.3", platform = "win32", optional=true },
]
pandas = "*"
scikit-fda = {version="^0.9", optional=true}
nox = {version="*", optional=true}
Expand Down

0 comments on commit 495605f

Please sign in to comment.