Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

finish CI move to GHA #1191

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
14d513e
MNT: Reflow setup.py
kernc Jan 31, 2021
cb93223
MNT: Update setup.py
kernc Jan 31, 2021
2fc5a53
MNT: Add GitHub ISSUE_TEMPLATEs
kernc Feb 2, 2021
9a76a02
MNT: Add GitHub Actions based CI workflow
kernc Aug 10, 2021
905543e
CI: Use ccache to speed-up scikit-learn builds on PyPy
kernc Sep 28, 2021
a680551
DOC: README.rst refresher
kernc Jan 31, 2021
34ab852
DOC: Add self to authors
kernc Sep 27, 2021
1f465f6
CLN: Fix flake8 config and errors
kernc Sep 27, 2021
af61a8d
PERF: Faster doc examples execution
kernc Sep 27, 2021
ab70149
MNT: Bump tested scikit-learn
kernc Sep 27, 2021
50d3d3c
BUG: Fix sklearn.__version__ check in GaussianProcessRegressor
kernc Sep 27, 2021
6d27d40
TST: Fix some failing tests
kernc Sep 27, 2021
1fc9fac
TST: Fix skopt.tests.test_utils.test_normalize_dimensions
kernc Sep 27, 2021
48a1db1
MNT: Fix sphinx linkcheck
kernc Oct 4, 2021
c68be90
fixup! MNT: Update setup.py
kernc Oct 7, 2021
630ecbd
fixup! MNT: Add GitHub Actions based CI workflow
kernc Oct 9, 2021
cb27034
fixup! CI: Use ccache to speed-up scikit-learn builds on PyPy
kernc Oct 9, 2021
d126d9f
MNT: Separate publish.yml workflow
kernc Oct 9, 2021
002d2e4
Merge branch 'master' into fix-ci
kernc Oct 9, 2021
3d1fd52
Merge branch 'master' into fix-ci
kernc Oct 11, 2021
26a8583
np.int -> int transformers.py
mikesmithlab May 11, 2023
7df6bf2
Another np.int transformers.py
mikesmithlab May 11, 2023
63473f7
Merge pull request #1 from mikesmithlab/master
shimanek Jul 6, 2023
d22c1d5
Merge branch 'fix-ci' into ci
shimanek Jul 8, 2023
a18096a
FIX: minimum working state for GHA CI and scikit-learn compatibility
shimanek Nov 11, 2023
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
1 change: 0 additions & 1 deletion .circleci/artifact_path

This file was deleted.

141 changes: 0 additions & 141 deletions .circleci/config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
build_tools/* linguist-documentation=true
.github/* linguist-documentation=true
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: Bug report
about: Create a report to help us reproduce and correct the bug
title: ''
labels: ''
assignees: ''
---
<!--
Please search through the past issues to see whether your issue
has already been addressed.
-->

#### Bug description
<!-- Clearly and concisely describe the issue. -->


#### Steps/code to reproduce
<!--
Please add a minimal code example that we can run to reproduce the error.
Be as succinct as possible, do not depend on external data. In short,
we're going to copy-paste your code, and we expect to get the same
result as you.
-->

```py
Sample code goes here
```


#### Expected results
<!-- Example: No error is thrown. Please paste or describe the expected results.-->


#### Actual results
<!-- Please paste or specifically describe the actual output or (full) traceback. -->


#### Context
<!--
Please run the following snippet and paste the output below.

for module in ('skopt', 'numpy', 'scipy', 'sklearn'):
print(module, __import__(module).__version__)
import platform; print(platform.platform())
import sys; print("Python", sys.version)
-->


<!--
Use the Preview to ensure the report looks as it should.

Thanks for contributing!
-->
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Community Forum on GitHub
url: https://github.com/scikit-learn/scikit-learn/discussions
about: For Q&A, issues, general discussion.
- name: Questions tagged 'scikit-optimize' on StackOverflow
url: https://stackoverflow.com/questions/tagged/scikit-optimize
about: For skopt-related programming questions with a wide audience.
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Feature request
about: Suggest new or enhancement to an existing functionality, etc.
title: ''
labels: Enhancement
assignees: ''
---
<!--
Every bit of code requires people to maintain it.

We view scikit-optimize as mature, stable, and feature-complete.
Thus, we don't envision vastly expanded scope or extra functionality.

Please follow this checklist before asking for a new feature:
* is the proposed feature in scope and tightly related to sequential
model-based optimization of expensive black-box functions,
* no better Python alternatives exist.
-->

#### Workflow / use case


#### Proposed solution


#### Alternatives you've considered, if relevant


#### Additional context

8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/other.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Other
about: For other issues (documentation, maintenance), to reach the community ...
title: ''
labels: ''
assignees: ''
---

3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [ ] Fixes #xxxx
- [ ] Unit tests added / passed
- [ ] Added _doc/whats_new_ entry
34 changes: 34 additions & 0 deletions .github/scripts/build_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash
set -e
set -o pipefail

# List available documentation versions
python .github/scripts/list_versions.py > doc/versions.rst

make -C doc dist LATEXMKOPTS=-halt-on-error SPHINXOPTS=-T 2>&1 | tee doc-log.txt

# Insert the version warning for deployment
find doc/_build/html/stable -name "*.html" |
xargs sed -Ei 's,(<\/body>),<script src="https://scikit-optimize.github.io/versionwarning.js"></script>\1,'


affected_doc_warnings() {
files=$(git diff --name-only origin/master...HEAD)
# Look for sphinx warnings only in files affected by the PR
if [ -n "$files" ]
then
for af in ${files[@]}
do
warn+=`grep WARNING doc-log.txt | grep $af`
done
fi
echo "$warn"
}

echo "The following documentation warnings have been generated:"
warnings=$(affected_doc_warnings)
if [ -z "$warnings" ]
then
warnings="no warnings"
fi
echo "$warnings"
53 changes: 53 additions & 0 deletions .github/scripts/publish_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/bin/bash
# Adapted from https://github.com/scikit-learn/scikit-learn/blob/master/build_tools/circle/push_doc.sh
# The scikit-learn and scikit-optimize developers.
# License: BSD-style
#
# This script is meant to be called in the "deploy" step.

set -eux

DOC_REPO="scikit-optimize.github.io"
DOC_REPO_URL="https://:$GITHUB_TOKEN@github.com/scikit-optimize/$DOC_REPO"
GENERATED_DOC_DIR=$1
BRANCH="${GITHUB_REF#refs/*/}"
BRANCH="${BRANCH:-master}"

if [[ -z "$GENERATED_DOC_DIR" ]]; then
echo "Need to pass directory of the generated doc as argument"
echo "Usage: $0 <generated_doc_dir>"
exit 1
fi

# Absolute path needed because we use cd further down in this script
GENERATED_DOC_DIR=$(readlink -f $GENERATED_DOC_DIR)

if [ "$BRANCH" = "master" ]
then
dir=dev
else
# Strip off .X
dir="${BRANCH%.*}"
fi

MSG="Pushing docs to $dir/ for branch: $BRANCH, commit $GITHUB_SHA"

if [ ! -d $DOC_REPO ];
then git clone "$DOC_REPO_URL"
fi
cd $DOC_REPO

# check if it's a new branch

if [ -d $dir ]
then
git rm -rf $dir/
fi
cp -R $GENERATED_DOC_DIR $dir
git config user.email "skoptci@gmail.com"
git config user.name "skoptci"
git config push.default matching
git add -f $dir/
git commit -m "$MSG" $dir
git push
echo $MSG
Loading