From 0c930a3bf4de74f58d85d402d67ab25d7d0f8e02 Mon Sep 17 00:00:00 2001 From: Cheng Lai Date: Fri, 4 Mar 2022 11:43:15 +0800 Subject: [PATCH] init CI --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a6d0ae8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +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 + + - run: python3 -m pip install -r requirements.txt + - run: sudo apt install -y pandoc + + - run: | + git clone https://github.com/d2l-ai/d2l-book.git + cd d2l-book + python3 -m pip install . + - run: d2lbook build html