-
Notifications
You must be signed in to change notification settings - Fork 5
Github Actions
豆豆 (Tommy Lin) edited this page Dec 2, 2020
·
3 revisions
-
Ubuntu / Python test environment (Copy from nsdhw_20au hw5.yml)
- Copy following files from nsdhw_20au to your github repository
nsdhw_20au
|-- contrib/install.sh
\-- .github/workflows/hw5.yml
-
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