CI #409
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- 'main' | |
schedule: | |
- cron: '0 0 * * 6' # “At 00:00 on Wednesday and Saturday" | |
workflow_dispatch: # allows you to trigger manually' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, '[skip-ci]')" | |
name: dash-docsets-build | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
env: | |
MKL_THREADING_LAYER: GNU | |
CONDA_ENV_FILE: ci/minimal-environment.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
key: ['arctic', 'pacific', 'indian'] | |
timeout-minutes: 200 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup micromamba | |
uses: mamba-org/provision-with-micromamba@main | |
with: | |
micromamba-version: latest | |
channel-priority: strict | |
environment-file: ${{ env.CONDA_ENV_FILE }} | |
environment-name: dash-docs | |
cache-env: true | |
cache-env-key: '${{runner.os}}-${{runner.arch}}-${{hashFiles(env.CONDA_ENV_FILE)}}' | |
- run: | | |
micromamba info && micromamba list | |
# - run: | | |
# python builder.py build configs/${{ matrix.key }}.yaml | |
# - uses: actions/upload-artifact@v2 | |
# with: | |
# name: docsets | |
# path: docsets | |
# retention-days: 3 | |
# - uses: actions/upload-artifact@v2 | |
# with: | |
# name: feeds | |
# path: feeds | |
# retention-days: 3 | |
# deploy: | |
# name: dash-docsets-deploy | |
# needs: build | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - uses: actions/download-artifact@v3 | |
# with: | |
# path: /tmp/workspace/builds | |
# - uses: actions/setup-python@v4 | |
# with: | |
# python-version: 3.8 | |
# - run: | | |
# python -m pip install --upgrade pip typer beautifulsoup4 pyyaml requests rich pandas tabulate pydantic ruamel.yaml psutil | |
# - run: | | |
# python cli.py update-feed-list /tmp/workspace/builds/README.md --docset-dir /tmp/workspace/builds/docsets | |
# - name: Display structure of files to upload | |
# run: ls -R | |
# working-directory: /tmp/workspace/builds | |
# - name: Deploy | |
# uses: peaceiris/actions-gh-pages@v3.8.0 | |
# with: | |
# github_token: ${{ secrets.GITHUB_TOKEN }} | |
# publish_dir: /tmp/workspace/builds | |
# user_name: 'GitHub Action' | |
# user_email: 'action@github.com' | |
# publish_branch: docsets |