Skip to content

Bump dawidd6/action-download-artifact from 2 to 6 in /.github/workflows in the github_actions group across 1 directory #1

Bump dawidd6/action-download-artifact from 2 to 6 in /.github/workflows in the github_actions group across 1 directory

Bump dawidd6/action-download-artifact from 2 to 6 in /.github/workflows in the github_actions group across 1 directory #1

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
schedule:
# run every day at midnight
- cron: "0 0 * * *"
defaults:
run:
shell: bash
jobs:
Linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
- name: Update packages
run: |
pip install -U pip wheel
- uses: pre-commit/[email protected]
TestStable:
name: Ubuntu / Python ${{ matrix.python-version }} / TensorFlow ${{ matrix.tensorflow-version }} / Scikit-Learn Stable
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
tensorflow-version: ["2.12.0"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install and Set Up Poetry
run: |
python -m pip install --upgrade poetry
poetry config virtualenvs.in-project true
poetry run python -m pip install --upgrade pip
- name: Install Dependencies
run: |
poetry install
poetry run python -m pip install -U "tensorflow~=${{ matrix.tensorflow-version }}"
- name: Test with pytest
run: |
poetry run python -m pip freeze
poetry run python -m pytest -v --cov=scikeras --cov-report xml --color=yes
- uses: codecov/codecov-action@v1
TestDev:
name: Ubuntu / Python ${{ matrix.python-version }} / TensorFlow Nightly / Scikit-Learn Nightly
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install and Set Up Poetry
run: |
python -m pip install --upgrade poetry
poetry config virtualenvs.in-project true
poetry run python -m pip install --upgrade pip
- name: Install Dependencies
run: |
poetry remove scikit-learn
poetry install
- name: Install Nightly Versions
if: always()
run: |
poetry run python -m pip install -U tf-nightly
poetry run python -m pip install -U scipy
poetry run python -m pip install -U --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple scikit-learn
- name: Test with pytest
if: always()
continue-on-error: true
run: |
poetry run python -m pip freeze
poetry run python -m pytest -v --cov=scikeras --cov-report xml --color=yes
- uses: codecov/codecov-action@v1
TestOldest:
name: Ubuntu / Python ${{ matrix.python-version }} / TF ${{ matrix.tf-version }} / Scikit-Learn ${{ matrix.sklearn-version }}
runs-on: ubuntu-latest
strategy:
matrix:
tf-version: [2.12.0]
python-version: ["3.8", "3.9"]
sklearn-version: [1.0.0]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install and Set Up Poetry
run: |
python -m pip install --upgrade poetry
poetry config virtualenvs.in-project true
poetry run python -m pip install --upgrade pip
- name: Install Dependencies
run: |
poetry install -E tensorflow
poetry run pip install \
"tensorflow==${{ matrix.tf-version }}" \
"scikit-learn==${{matrix.sklearn-version}}"
- name: Test with pytest
run: |
poetry run python -m pip freeze
poetry run python -m pytest -v --cov=scikeras --cov-report xml --color=yes
- uses: codecov/codecov-action@v1
TestOSs:
name: ${{ matrix.os }} / Python ${{ matrix.python-version }} / TF Stable / Scikit-Learn Stable
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [MacOS, Windows] # test all OSs except Ubuntu, which is already running other tests
python-version: ["3.8", "3.11"] # test only the two extremes of supported Python versions
tensorflow-version: ["2.12.0"] # test only the two extremes of supported TF versions
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install and Set Up Poetry
run: |
pip install --upgrade poetry
poetry config virtualenvs.in-project true
poetry run python -m pip install --upgrade pip
- name: Install Dependencies
# TF is sorta dropping support for Windows
# At the very least they are no longer suppporting GPU
# See https://github.com/tensorflow/tensorflow/releases/tag/v2.12.0
# and
# https://www.tensorflow.org/install/pip#windows-native
run: |
poetry install
poetry run python -m pip install -U "tensorflow~=${{ matrix.tensorflow-version }}"
- name: Test with pytest
run: |
poetry run pip freeze
poetry run python -m pytest -v --cov=scikeras --cov-report xml --color=yes
- uses: codecov/codecov-action@v1