Skip to content

Commit

Permalink
Update action (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
durandtibo authored Oct 4, 2024
1 parent c988b53 commit 0d563e5
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 8 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/test-install-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,72 @@ jobs:
python -m pytest tests/functional
torch-poetry:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
max-parallel: 8
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.12', '3.11', '3.10', '3.9' ]
torch-version: [
2.4.1,
2.4.0,
2.3.1,
2.3.0,
2.2.2,
2.2.1,
2.2.0,
2.1.2,
2.1.1,
2.1.0,
2.0.1,
2.0.0,
1.13.1,
1.13.0,
1.12.1,
1.12.0,
1.11.0,
1.10.2,
1.10.1,
1.10.0,
1.9.1,
1.9.0,
]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Set environment variable
run: |
echo $(poetry run poetry env info --path)/bin >> $GITHUB_PATH
- name: Install valid package version
uses: ./
with:
package-name: 'torch'
package-version: ${{ matrix.torch-version }}
python-version: ${{ matrix.python-version }}

- name: Install packages
run: |
pip install coola pytest
- name: Run functional tests
run: |
python -m pytest tests/functional
xarray:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/test-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,71 @@ jobs:
python -m pytest tests/functional
torch-poetry:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
max-parallel: 8
fail-fast: false
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.12', '3.11', '3.10', '3.9' ]
torch-version: [
2.4.1,
2.4.0,
2.3.1,
2.3.0,
2.2.2,
2.2.1,
2.2.0,
2.1.2,
2.1.1,
2.1.0,
2.0.1,
2.0.0,
1.13.1,
1.13.0,
1.12.1,
1.12.0,
1.11.0,
1.10.2,
1.10.1,
1.10.0,
1.9.1,
1.9.0,
]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Set environment variable
run: |
echo $(poetry run poetry env info --path)/bin >> $GITHUB_PATH
- name: Install valid package version
uses: ./
with:
package-name: 'torch'
package-version: ${{ matrix.package-version }}
python-version: ${{ matrix.python-version }}

- name: Install packages
run: |
pip install coola pytest
- name: Run functional tests
run: |
python -m pytest tests/functional
xarray:
runs-on: ${{ matrix.os }}
timeout-minutes: 10
Expand Down
9 changes: 1 addition & 8 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,10 @@ outputs:
runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- name: Install dependencies
shell: bash
run: |
which pip
pip install "feu[cli]>=0.2.3"
- name: Find closest valid version
Expand Down

0 comments on commit 0d563e5

Please sign in to comment.