Skip to content

Commit

Permalink
feat:
Browse files Browse the repository at this point in the history
- Add 3.10 to the build matrix
- Drop support for various OS + versions for simplicity
- Add automatic trigger for tests + build
  • Loading branch information
SeanC-Promaton committed Apr 23, 2024
1 parent 59eb808 commit 2d6d033
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 294 deletions.
73 changes: 17 additions & 56 deletions .github/workflows/building-conda.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,27 @@
name: Building Conda

on: [workflow_dispatch]
on:
workflow_dispatch: {}
push:
branches: [ "**" ]
tags: [ "*" ]

jobs:

conda-build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macos-10.15] #, windows-2019]
python-version: ['3.7', '3.8', '3.9'] #, '3.10']
torch-version: [1.10.0, 1.11.0, 1.12.0]
cuda-version: ['cpu', 'cu102', 'cu113', 'cu115', 'cu116']
exclude:
- torch-version: 1.10.0
cuda-version: 'cu116'
- torch-version: 1.11.0
cuda-version: 'cu116'
- torch-version: 1.12.0
cuda-version: 'cu115'
- torch-version: 1.10.0
cuda-version: 'cu115'
- torch-version: 1.10.0
python-version: '3.10'
- os: windows-2019
torch-version: 1.11.0
cuda-version: 'cu102'
- os: macos-10.15
cuda-version: 'cu102'
- os: macos-10.15
cuda-version: 'cu113'
- os: macos-10.15
cuda-version: 'cu115'
- os: macos-10.15
cuda-version: 'cu116'
- os: macos-10.15
python-version: '3.10' # this is unhappy
- os: ubuntu-18.04
cuda-version: 'cu115'
- os: windows-2019
cuda-version: 'cu102'
- os: windows-2019 # Complains about CUDA mismatch.
python-version: '3.7'

os: ['ubuntu-20.04']
python-version: ['3.8', '3.9', '3.10']
torch-version: ['1.11.0', '1.13.1']
cuda-version: ['cpu', 'cu113']
steps:
- uses: actions/checkout@v2
- name: Set up Conda for Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}

- name: Free up disk space
if: ${{ runner.os == 'Linux' }}
run: |
sudo rm -rf /usr/share/dotnet
- name: Free up disk space
if: ${{ runner.os == 'Linux' }}
run: |
sudo rm -rf /usr/share/dotnet

- name: Install Conda packages
run: |
Expand Down Expand Up @@ -90,11 +51,11 @@ jobs:
shell:
bash -l {0}

- name: Publish Conda package
run: |
conda install anaconda-client --yes
anaconda upload --force --label main $HOME/conda-bld/*/*.tar.bz2
env:
ANACONDA_API_TOKEN: ${{ secrets.CONDA_TOKEN }}
shell:
bash -l {0}
#- name: Publish Conda package
# run: |
# conda install anaconda-client --yes
# anaconda upload --force --label main $HOME/conda-bld/*/*.tar.bz2
# env:
# ANACONDA_API_TOKEN: ${{ secrets.CONDA_TOKEN }}
# shell:
# bash -l {0}
8 changes: 0 additions & 8 deletions .github/workflows/cuda/cu101-Linux-env.sh

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/cuda/cu101-Linux.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/cuda/cu101-Windows-env.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/cuda/cu101-Windows.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/cuda/cu102-Linux-env.sh

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/cuda/cu102-Linux.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/cuda/cu102-Windows-env.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/cuda/cu102-Windows.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/cuda/cu111-Linux-env.sh

This file was deleted.

15 changes: 0 additions & 15 deletions .github/workflows/cuda/cu111-Linux.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/cuda/cu111-Windows-env.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/cuda/cu111-Windows.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/cuda/cu113-Windows-env.sh

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/cuda/cu113-Windows.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/cuda/cu115-Windows-env.sh

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/cuda/cu115-Windows.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/cuda/cu116-Windows-env.sh

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/cuda/cu116-Windows.sh

This file was deleted.

13 changes: 4 additions & 9 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ name: Unittests
on:
pull_request:
push:
branches:
- master
branches: [ "**" ]

jobs:
unittests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8]
torch-version: [1.10.0, 1.11.0, 1.12.0]
os: ['ubuntu-20.04']
python-version: ['3.8', '3.9', '3.10']
torch-version: ['1.11.0', '1.13.1']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -26,11 +25,7 @@ jobs:
pip install "numpy<=1.21" scikit-learn flake8 setuptools numba
- name: Install torch ${{ matrix.torch-version }} windows + linux
if: ${{matrix.os != 'macos-latest'}}
run: pip install torch==${{ matrix.torch-version }}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install torch ${{ matrix.torch-version }} macos
if: ${{matrix.os == 'macos-latest'}}
run: pip install torch==${{ matrix.torch-version }}

- name: Build package
run: |
Expand Down

0 comments on commit 2d6d033

Please sign in to comment.