mirror of
https://github.com/openmlsys/openmlsys-zh.git
synced 2026-02-03 10:23:55 +08:00
* new computational graph chapter * Update main.yml * Update main.yml --------- Co-authored-by: Luo Mai <luo.mai.cs@gmail.com>
28 lines
686 B
YAML
28 lines
686 B
YAML
name: CI
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
- workflow_dispatch # Allows you to run this workflow manually from the Actions tab
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: s-weigand/setup-conda@v1
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v3
|
|
with:
|
|
python-version: '3.8'
|
|
- run: conda config --append channels conda-forge
|
|
- run: python3 -m pip install -r requirements.txt
|
|
- run: conda install -y pandoc==2.17
|
|
|
|
- run: |
|
|
git clone https://github.com/openmlsys/d2l-book.git
|
|
cd d2l-book
|
|
python3 -m pip install .
|
|
- run: d2lbook build html
|