Skip to content

Commit 495605f

Browse files
update CI (#475)
* 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 <[email protected]>
1 parent 3370dda commit 495605f

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/dunamai.yml .github/workflows/post_merge.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
types: [closed]
77

88
jobs:
9-
versionjob:
9+
version_lock_job:
1010
if: github.event.pull_request.merged == true
1111
runs-on: ubuntu-latest
1212
steps:
@@ -24,8 +24,9 @@ jobs:
2424
- run: echo $MY_VERSION
2525
- uses: snok/install-poetry@v1
2626
- run: poetry version "v$MY_VERSION "
27+
- run: poetry lock
2728
- uses: EndBug/add-and-commit@v8
2829
with:
29-
add: 'pyproject.toml'
30+
add: '["pyproject.toml", "poetry.lock"]'
3031
default_author: github_actor
31-
message: 'Writing version with github action [skip ci]'
32+
message: 'Writing version and lock with github action [skip ci]'

.github/workflows/ready_for_review.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: echo $PR_NUM > pr_num.txt
2121

2222
- name: Upload the PR number
23-
uses: actions/upload-artifact@v2
23+
uses: actions/upload-artifact@v4
2424
with:
2525
name: pr_num
2626
path: ./pr_num.txt

pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ opencv-python = {version="*", optional=true}
3838
ale-py = {version="*", optional=true}
3939
stable-baselines3 = {version="*", optional=true}
4040
tensorboard = {version="*", optional=true}
41-
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}]
41+
torch = [
42+
{ version = ">=2.0.0,<2.3", platform = "darwin", optional=true },
43+
{ version = ">=2.0.0,<2.3", platform = "linux", optional=true },
44+
{ version = ">=2.0.0,<2.3", platform = "win32", optional=true },
45+
]
4246
pandas = "*"
4347
scikit-fda = {version="^0.9", optional=true}
4448
nox = {version="*", optional=true}

0 commit comments

Comments
 (0)