diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 4ef26a97..c0ce8c83 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -11,12 +11,12 @@ concurrency: jobs: pytest: runs-on: ${{ matrix.os }} - if: "github.repository == 'skops-dev/skops'" + if: github.repository == 'skops-dev/skops' strategy: fail-fast: false # need to see which ones fail matrix: - os: [ubuntu-latest, windows-latest, macos-12] - python: ["3.9", "3.10", "3.11", "3.12"] + os: [ubuntu-latest, windows-latest, macos-latest] + python: ["3.9", "3.10", "3.11", "3.12", "3.13"] # this is to make the CI run on different sklearn versions include: - python: "3.9" @@ -29,6 +29,9 @@ jobs: sklearn_version: "1.4" numpy_version: "numpy" - python: "3.12" + sklearn_version: "1.5" + numpy_version: "numpy" + - python: "3.13" sklearn_version: "nightly" numpy_version: "numpy" @@ -57,6 +60,9 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip + if [ "${{ matrix.os }}" == "macos-latest" ]; then + brew install libomp + fi pip install "pytest<8" pip install "${{ matrix.numpy_version }}" if [ ${{ matrix.sklearn_version }} == "nightly" ]; diff --git a/.github/workflows/deploy-model-card-creator.yml b/.github/workflows/deploy-model-card-creator.yml deleted file mode 100644 index 258269e8..00000000 --- a/.github/workflows/deploy-model-card-creator.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Deploy-Space-Creator - -on: - - push - - pull_request - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - deploy-space-creator: - runs-on: "ubuntu-latest" - if: "github.repository == 'skops-dev/skops'" - # Timeout: https://stackoverflow.com/a/59076067/4521646 - timeout-minutes: 5 - - steps: - - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - - name: Install dependencies - run: | - pip install "pytest<8" - pip install -e .[docs,tests] - python --version - pip --version - pip list - shell: bash - - - name: Create test skops space creator app - # by default, deploy to skops CI - if: github.ref != 'refs/heads/main' - run: | - python spaces/deploy-skops-model-card-creator.py - - - name: Create main skops space creator app - # if HF_HUB_TOKEN_SKLEARN, use that instead of skops CI orga - if: github.ref == 'refs/heads/main' - env: - HF_HUB_TOKEN_SKLEARN: ${{ secrets.HF_HUB_TOKEN_SKLEARN }} - run: | - python spaces/deploy-skops-model-card-creator.py