Skip to content

Commit

Permalink
TMP upload docs artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
drasmuss committed Apr 12, 2024
1 parent 239544f commit b74fcf2
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 27 deletions.
59 changes: 32 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,42 +20,42 @@ defaults:
shell: bash -el {0}

jobs:
static:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: nengo/nengo-bones/actions/setup@main
with:
python-version: "3.9"
- uses: nengo/nengo-bones/actions/generate-and-check@main
- uses: nengo/nengo-bones/actions/run-script@main
with:
name: static
# static:
# runs-on: ubuntu-latest
# timeout-minutes: 30
# steps:
# - uses: nengo/nengo-bones/actions/setup@main
# with:
# python-version: "3.9"
# - uses: nengo/nengo-bones/actions/generate-and-check@main
# - uses: nengo/nengo-bones/actions/run-script@main
# with:
# name: static
test:
needs:
- static
# needs:
# - static
timeout-minutes: 60
strategy:
matrix:
include:
- script: test
coverage-name: gpu
tf-version: tensorflow[and-cuda]
runs-on: [self-hosted, gpu]
- script: test
python-version: "3.11"
coverage-name: latest
- script: test
tf-version: tensorflow~=2.6.0
python-version: "3.8"
coverage-name: oldest
# - script: test
# coverage-name: gpu
# tf-version: tensorflow[and-cuda]
# runs-on: [self-hosted, gpu]
# - script: test
# python-version: "3.11"
# coverage-name: latest
# - script: test
# tf-version: tensorflow~=2.6.0
# python-version: "3.8"
# coverage-name: oldest
- script: docs
tf-version: tensorflow[and-cuda]==2.16.1
python-version: "3.9"
runs-on: [self-hosted, gpu]
- script: examples
tf-version: tensorflow[and-cuda]==2.16.1
runs-on: [self-hosted, gpu]
# - script: examples
# tf-version: tensorflow[and-cuda]==2.16.1
# runs-on: [self-hosted, gpu]
fail-fast: false
env:
TF_VERSION: ${{ matrix.tf-version || 'tensorflow' }}
Expand All @@ -73,6 +73,11 @@ jobs:
- uses: nengo/nengo-bones/actions/run-script@main
with:
name: ${{ matrix.script }}
- uses: actions/upload-artifact@v3
if: ${{ always() && matrix.script == 'docs' }}
with:
name: docs
path: docs/_build
- uses: actions/upload-artifact@v3
if: ${{ always() && matrix.coverage-name }}
with:
Expand Down
11 changes: 11 additions & 0 deletions .templates/docs.sh.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "templates/docs.sh.template" %}

{% block script %}
sphinx-build -b html docs docs/_build -vW --keep-going -A building_version=latest || touch "$FAILED_FILE"

if [[ -e "$FAILED_FILE" ]]; then
echo -e "\033[1;31mCOMMAND 'sphinx-build' FAILED\033[0m"
STATUS=1
fi

{% endblock %}

0 comments on commit b74fcf2

Please sign in to comment.