Skip to content

Commit

Permalink
Switch to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tbekolay authored and drasmuss committed Jan 26, 2023
1 parent ec8bf03 commit 27c0705
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 216 deletions.
Binary file removed .ci/secret.tar.enc
Binary file not shown.
19 changes: 0 additions & 19 deletions .codecov.yml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CI testing
on:
pull_request: {}
push:
branches:
- main
- release-candidate-*
tags:
- v*
workflow_dispatch:
inputs:
debug_enabled:
description: Run the build with SSH debugging enabled
type: boolean
required: false
default: false

jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
include:
- script: static
- script: test
coverage-name: test
- script: docs
fail-fast: false
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_CONFIG: ${{ secrets.SSH_CONFIG }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- uses: nengo/nengo-bones/actions/setup@main
with:
python-version: "3.8"
- name: Install ffmpeg for docs
if: ${{ matrix.script == 'docs' }}
uses: FedericoCarboni/setup-ffmpeg@v2
- uses: nengo/nengo-bones/actions/generate-and-check@main
- uses: nengo/nengo-bones/actions/run-script@main
with:
name: ${{ matrix.script }}
- uses: actions/upload-artifact@v3
if: ${{ always() && matrix.coverage-name }}
with:
name: coverage-${{ matrix.coverage-name }}
path: .coverage
coverage:
runs-on: ubuntu-latest
timeout-minutes: 10
needs:
- test
if: ${{ always() }}
steps:
- uses: nengo/nengo-bones/actions/coverage-report@main
40 changes: 20 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
*.py[co]
.DS_Store
_build
build
dist
*.egg-info
*~
*.bak
*.class
*.dist-info/
*.egg-info
*.eggs/
*.py[co]
*.swp
log.txt
.ipynb_checkpoints/
*~
.DS_Store
.cache
.coverage
.idea
.ipynb_checkpoints/
.pytest_cache/
.tox
.vagrant
wintest.sh
.vscode
Vagrantfile
*.class
*.eggs/
.coverage
_build
bones-scripts
build
dist
docs/.doctrees
htmlcov
*.dist-info/
.vscode
.idea
.pytest_cache/
mnist.pkl.gz
id_*.txt
docs/.doctrees
.ci/*.sh
log.txt
mnist.pkl.gz
wintest.sh
66 changes: 25 additions & 41 deletions .nengobones.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ repo_name: nengo/nengo-fpga
description: FPGA backend for Nengo
copyright_start: 2018
license: abr-nonfree
main_branch: main

license_rst: {}

Expand Down Expand Up @@ -44,35 +45,14 @@ docs_conf_py:
nengo-pynq: "https://www.nengo.ai/nengo-pynq/"
html_redirects:
getting_started.html: getting-started.html
examples/notebooks/00-communication_channel.html:
examples/notebooks/00-communication-channel.html
examples/notebooks/01-learn_communication_channel.html:
examples/notebooks/01-learn-communication-channel.html
examples/notebooks/02-set_neuron_params.html:
examples/notebooks/02-set-neuron-params.html
examples/notebooks/05-controlled_oscillator.html:
examples/notebooks/05-controlled-oscillator.html
examples/notebooks/06-chaotic_attractor.html:
examples/notebooks/06-chaotic-attractor.html
examples/notebooks/00-communication_channel.html: examples/notebooks/00-communication-channel.html
examples/notebooks/01-learn_communication_channel.html: examples/notebooks/01-learn-communication-channel.html
examples/notebooks/02-set_neuron_params.html: examples/notebooks/02-set-neuron-params.html
examples/notebooks/05-controlled_oscillator.html: examples/notebooks/05-controlled-oscillator.html
examples/notebooks/06-chaotic_attractor.html: examples/notebooks/06-chaotic-attractor.html
nengo_logo: nengo-fpga-full-light.svg
nengo_logo_color: "#541a8b"

travis_yml:
python: 3.6
jobs:
- script: static
- script: test
- script: remote-docs
slack_notifications: "ajq+5SXA+dscgOAUZs0HcALHNhRpo9iiqDGRhpuVAesnwJWwHWRpRZleVLkOKX7\
FghRU+GVzMvH97DCSaNJXAsggipZ3uXgGwMFSpMV/ytA0PT3Reox42anLJdCAdjr80Cb1O/OzA03vEcVAVm\
E+d/pTUhsQwmsWmITjypUNsrJrUnGHSGFcAeio+taILHsS54jGpzaw5EdElUxYiHapIbgQ6l3Fyw/RSqCUH\
6RAFdQGy0fqZ36qhm/vv5y+S58n7zDsPWtP8+BG67EjkILHrkrNxOBB7EUUdNmTqLa7we08rNtvo58Fk4pD\
KTaCT8WL3rD107+GdH+o4iAeK/10m0Sb6yFqMTDTJYlRyJ1J6JNYqXfhbrbHrliWWVnOLB5LIloEzjcfpcp\
73AcQQjxr8zE42B726cXiN94vmL4RgzyEfO4oMw6T5VQb3fRgjc+nUVhGIe4hEjg6/XVYjtLRVx782kAJEN\
1ML6tdJ/KA197znGPRznhuKAb+HhhoHrXmPXzjdMILVGeDx5dw04rYUzJUtMwP7ltKUX6Vjr1KZQwr4khvu\
/x5pyHwqPBftoxd2318MVwzS7eepLkbBu+uiZtHNoMiK4sKug8wuDvyM3GXuF1oEuIU2Z62bkMMASSJ+JUN\
xJOBzXq/JGvN05Z6daT2XOuniaUx+DfnGDtDx9s="

ci_scripts:
- template: static
- template: test
Expand All @@ -81,22 +61,26 @@ ci_scripts:
pip_install:
- numpy>=1.13.0
- matplotlib
- template: slurm-script
slurm_command: "srun -pCI"
wrapped_commands:
- sphinx-build
slurm_script: docs
output_name: slurm-docs
- template: remote-script
remote_script: slurm-docs
remote_setup:
- conda install -y pandoc ffmpeg
output_name: remote-docs
host: abrghost
travis_var_key: 2895d60e3414

codecov_yml: {}
# this setup can be used to run CI scripts remotely over slurm:
# - template: slurm-script
# slurm_command: "srun -pCI"
# wrapped_commands:
# - sphinx-build
# slurm_script: docs
# output_name: slurm-docs
# - template: remote-script
# remote_script: slurm-docs
# remote_setup:
# - micromamba install -y pandoc ffmpeg
# output_name: remote-docs
# host: abrghost

pre_commit_config_yaml: {}

pyproject_toml: {}

version_py:
major: 0
minor: 2
patch: 3
release: false
33 changes: 0 additions & 33 deletions .templates/docs.sh.template

This file was deleted.

18 changes: 9 additions & 9 deletions .templates/slurm-script.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ instead of the typical non-SLURM invocation.
#}

{% block install %}
bash .ci/{{ slurm_script }}.sh install || STATUS=1
bash bones-scripts/{{ slurm_script }}.sh install || STATUS=1
{% endblock %}

{% block before_script %}
bash .ci/{{ slurm_script }}.sh before_script || STATUS=1
bash bones-scripts/{{ slurm_script }}.sh before_script || STATUS=1
{% endblock %}

{% block script %}
Expand All @@ -48,29 +48,29 @@ instead of the typical non-SLURM invocation.

{% endfor %}
# Run script. Use existing shell instead of subshell to ensure alias applies.
. .ci/{{ slurm_script }}.sh script || STATUS=1
. bones-scripts/{{ slurm_script }}.sh script || STATUS=1
{% endblock %}

{% block before_cache %}
bash .ci/{{ slurm_script }}.sh before_cache || STATUS=1
bash bones-scripts/{{ slurm_script }}.sh before_cache || STATUS=1
{% endblock %}

{% block after_success %}
bash .ci/{{ slurm_script }}.sh after_success || STATUS=1
bash bones-scripts/{{ slurm_script }}.sh after_success || STATUS=1
{% endblock %}

{% block after_failure %}
bash .ci/{{ slurm_script }}.sh after_failure || STATUS=1
bash bones-scripts/{{ slurm_script }}.sh after_failure || STATUS=1
{% endblock %}

{% block before_deploy %}
bash .ci/{{ slurm_script }}.sh before_deploy || STATUS=1
bash bones-scripts/{{ slurm_script }}.sh before_deploy || STATUS=1
{% endblock %}

{% block after_deploy %}
bash .ci/{{ slurm_script }}.sh after_deploy || STATUS=1
bash bones-scripts/{{ slurm_script }}.sh after_deploy || STATUS=1
{% endblock %}

{% block after_script %}
bash .ci/{{ slurm_script }}.sh after_script || STATUS=1
bash bones-scripts/{{ slurm_script }}.sh after_script || STATUS=1
{% endblock %}
85 changes: 0 additions & 85 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 27c0705

Please sign in to comment.