Skip to content

Commit

Permalink
Merge pull request #101 from dmgav/ci_configuration
Browse files Browse the repository at this point in the history
CI configuration
  • Loading branch information
danielballan committed Dec 8, 2020
2 parents 7ec1e38 + 52667fc commit 4594e1f
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 173 deletions.
85 changes: 0 additions & 85 deletions ._travis_.yml

This file was deleted.

71 changes: 0 additions & 71 deletions .github/workflows/deploy_docs.sh

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ jobs:
- name: Install dependencies
run: |
sudo apt install redis
python -m pip install --upgrade pip
# These packages are installed in the base environment but may be older
# versions. Explicitly upgrade them because they often create
# installation problems if out of date.
python -m pip install --upgrade pip setuptools numpy
pip install .
pip install -r requirements-dev.txt
pip list
Expand Down
28 changes: 19 additions & 9 deletions .github/workflows/docs_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:

jobs:
build:

if: github.repository == 'bluesky/bluesky-queueserver'
if: github.repository_owner == 'bluesky'
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -23,16 +22,27 @@ jobs:
- name: Install dependencies
run: |
sudo apt install redis
python -m pip install --upgrade pip
# These packages are installed in the base environment but may be older
# versions. Explicitly upgrade them because they often create
# installation problems if out of date.
python -m pip install --upgrade pip setuptools numpy
pip install .
pip install -r requirements-dev.txt
pip list
- name: Build Docs
run: |
make -C docs/ html
- name: Deploy Docs
env:
BUILD_DIR: "docs/build/html"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./.github/workflows/deploy_docs.sh
- name: Deploy documentation to blueskyproject.io
# We pin to the SHA, not the tag, for security reasons.
# https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3
with:
deploy_key: ${{ secrets.ACTIONS_DOCUMENTATION_DEPLOY_KEY }}
publish_branch: main
publish_dir: ./docs/build/html
external_repository: bluesky/bluesky.github.io
destination_dir: bluesky-queueserver
keep_files: true # Keep old files.
force_orphan: false # Keep git history.
6 changes: 5 additions & 1 deletion .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ jobs:
- uses: actions/setup-python@v2
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
# These packages are installed in the base environment but may be older
# versions. Explicitly upgrade them because they often create
# installation problems if out of date.
python -m pip install --upgrade pip setuptools numpy
pip install flake8
- name: Run flake8
run: |
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ jobs:
- name: Install dependencies
run: |
sudo apt install redis
python -m pip install --upgrade pip
# These packages are installed in the base environment but may be older
# versions. Explicitly upgrade them because they often create
# installation problems if out of date.
python -m pip install --upgrade pip setuptools numpy
pip install .
pip install -r requirements-dev.txt
pip install scikit-image
pip install pytest
pip list
- name: Test with pytest
run: |
Expand Down
3 changes: 0 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
bluesky-queueserver
===================

.. image:: https://img.shields.io/travis/bluesky/bluesky-queueserver.svg
:target: https://travis-ci.org/bluesky/bluesky-queueserver

.. image:: https://img.shields.io/pypi/v/bluesky-queueserver.svg
:target: https://pypi.python.org/pypi/bluesky-queueserver

Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ sphinx
ipython
matplotlib
numpydoc
scikit-image
sphinx-copybutton
sphinx_rtd_theme
# Extra dependencies for development
Expand Down

0 comments on commit 4594e1f

Please sign in to comment.