Skip to content

Github Actions

豆豆 (Tommy Lin) edited this page Dec 2, 2020 · 3 revisions

Current github actions

Current running github actions

  1. GitHub Super-Linter Quickstart for GitHub Actions using github/super-linter

  2. GitHub cppcheck-action cppcheck-action

  3. make pytest basic check Ubuntu / Python test environment (Copy from nsdhw_20au hw5.yml)

How to setup "Ubuntu / Python test environment" on Github Actions

  1. Copy following files from nsdhw_20au to your github repository
  nsdhw_20au
  |-- contrib/install.sh
  \-- .github/workflows/hw5.yml
  1. Edit following sections depand on your requirement:

    Edit nsdhw_20au/.github/workflows/hw5.yml. It is free to change file name(hw5.yml)

  • Change branches to fit your repository branches
on:
  push:
    branches:
      - '**hw5**' ==> develop
  pull_request:
    branches:
      - hw5 ==> mater
  • Add new ubuntu packages to install in this section:
    - name: dependency (ubuntu)
      if: matrix.os != 'macos-latest'
      run: |
           ......
           sudo apt-get -qy install package-name
  • Add new python modules to install in this section:
    - name: dependency (conda+pip+custom)
      run: |
           ......
           pip install python-module
  • Add your customized command here
    - name: grade
      run: |
        ......
        make test