Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve naming, make it consistent
Step names start with a capital. Clarified names to indicate what is
done.
  • Loading branch information
PGijsbers committed Nov 1, 2020
commit 601732de066770da4e8568fc57ff18bf276db05d
6 changes: 3 additions & 3 deletions .github/workflows/dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: build dist
- name: Build dist
run: |
python setup.py sdist
- name: twine check
- name: Twine check
run: |
pip install twine
last_dist=$(ls -t dist/openml-*.tar.gz | head -n 1)
twine check $last_dist
- name: install dist
- name: Install dist
run: |
last_dist=$(ls -t dist/openml-*.tar.gz | head -n 1)
pip install $last_dist
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,35 @@ name: Docs
on: [pull_request, push]

jobs:
docs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: install dependencies
- name: Install dependencies
run: |
pip install -e .[examples,examples_unix]
pip install sphinx-gallery sphinx_bootstrap_theme numpydoc
Comment thread
PGijsbers marked this conversation as resolved.
Outdated
- name: make docs
- name: Make docs
run: |
cd doc
make html
- name: pull latest gh-pages
- name: Pull latest gh-pages
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
run: |
cd ..
git clone https://github.com/openml/openml-python.git --branch gh-pages --single-branch gh-pages
- name: copy new doc into gh-pages
- name: Copy new doc into gh-pages
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
run: |
branch_name=${GITHUB_REF##*/}
cd ../gh-pages
rm -rf $branch_name
cp -r ../openml-python/doc/build/html $branch_name
- name: push to gh-pages
- name: Push to gh-pages
if: (contains(github.ref, 'develop') || contains(github.ref, 'master')) && github.event_name == 'push'
run: |
last_commit=$(git log --pretty=format:"%an: %s")
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ name: pre-commit
on: [push]

jobs:
pre-commit:
run-all-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
- name: Setup Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: install pre-commit
- name: Install pre-commit
run: |
pip install pre-commit
pre-commit install
- name: run pre-commit
- name: Run pre-commit
run: |
set -e
pre-commit run --all-files
17 changes: 10 additions & 7 deletions .github/workflows/ubuntu-test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: ubuntu
name: Tests

on: [push, pull_request]

jobs:
unittest:
ubuntu:

runs-on: ubuntu-latest
strategy:
Expand All @@ -29,23 +29,26 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: CI Python ${{ matrix.python-version }} scikit-learn ${{ matrix.scikit-learn }}
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies (.[test])
- name: Install test dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Install scikit-learn ${{ matrix.scikit-learn }}
run: |
pip install scikit-learn==${{ matrix.scikit-learn }}
if [ ${{ matrix.scipy }} ]; then pip install scipy==${{ matrix.scipy }}; fi
- name: Run Tests
- name: Install scipy ${{ matrix.scipy }}
if: ${{ matrix.scipy }}
run: |
pip install scipy==${{ matrix.scipy }}
- name: Run tests
run: |
if [ ${{ matrix.code-cov }} ]; then codecov='--cov=openml --long --cov-report=xml'; fi
pytest -n 4 --durations=20 --timeout=600 --timeout-method=thread -sv $codecov
- name: Upload Coverage
- name: Upload coverage
if: ${{ matrix.code-cov }} && ${{ always() }}
uses: codecov/codecov-action@v1
with:
Expand Down