Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Apr 16, 2021
1 parent 327302c commit 8d02085
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 45 deletions.
86 changes: 44 additions & 42 deletions .github/workflows/dev-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,47 @@ jobs:
ubuntu:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v2

- name: Install Ubuntu dependencies
run: sudo apt-get install graphviz pandoc

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -e ".[docs]"
- name: Build docs
run: make doc

- name: Deploy docs
env:
GH_TOKEN: ${{ secrets.GitHubToken }}
run: |
git config user.name github-actions
git config user.email [email protected]
git config pull.rebase false
git fetch
git checkout gh-pages
git pull
git checkout master
mike deploy dev --push --remote https://github.com/online-ml/river.git
- uses: actions/checkout@v2

- name: Install Ubuntu dependencies
run: sudo apt-get install graphviz pandoc

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -e ".[docs]"
- name: Build docs
run: make doc

- name: Deploy docs
env:
GH_TOKEN: ${{ secrets.GitHubToken }}
run: |
git config user.name github-actions
git config user.email [email protected]
git config pull.rebase false
git add --all
git commit -m "Release dev docs"
git fetch
git checkout gh-pages
git pull
git checkout master
mike deploy dev --push --remote https://github.com/online-ml/river.git
4 changes: 1 addition & 3 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
env:
CIBW_BUILD: "cp36-* cp37-* cp38-*"
CIBW_BEFORE_BUILD: "pip install cython"
PYPI_USER: ${{ secrets.PYPI_USER }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
steps:
- uses: actions/checkout@v2

Expand All @@ -41,4 +39,4 @@ jobs:
cibuildwheel --output-dir dist
python setup.py sdist
ls dist
twine upload dist/* -u ${PYPI_USER} -p ${PYPI_PASSWORD}
twine upload dist/* -u ${{ secrets.pypi_user }} -p ${{ secrets.pypi_password }}

0 comments on commit 8d02085

Please sign in to comment.