Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Join gh-actions for docs (#2003)

João Gustavo A. Amorimb36357695778
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index c7eb85186..8652b146e 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -1,4 +1,4 @@
-name: test-docs
+name: Documentation
on:
workflow_dispatch:
@@ -6,14 +6,36 @@ on:
branches:
- master
pull_request:
- branches:
- - master
+ schedule:
+ - cron: "0 4 * * *"
jobs:
- build-docs:
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ steps:
+ - uses: actions/checkout@v3
+ - name: Setup conda dependencies
+ uses: conda-incubator/setup-miniconda@v2
+ with:
+ auto-update-conda: true
+ python-version: 3.7
+ - name: Install dependencies
+ shell: bash -l {0}
+ run: |
+ conda install curl -c conda-forge
+ conda install pytorch cpuonly -c pytorch
+ pip install .[dev,x]
+ - name: Run doctest
+ shell: bash -l {0}
+ run: make doctest
+
+ build:
+ needs: test
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Setup conda dependencies
uses: conda-incubator/setup-miniconda@v2
with:
@@ -28,7 +50,7 @@ jobs:
run: make build-docs
- name: Deploy to GitHub Pages
if: ${{ github.event_name != 'pull_request' }}
- uses: JamesIves/[email protected]
+ uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh_pages # The branch the action should deploy to.
diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml
deleted file mode 100644
index 5bf39a359..000000000
--- a/.github/workflows/format.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-name: code-format
-
-on:
- push:
- branches:
- - master
- pull_request:
- schedule:
- - cron: "0 4 * * *"
-
-jobs:
- doctest:
- runs-on: [ubuntu-latest]
- strategy:
- fail-fast: false
- matrix:
- os: [ubuntu-latest]
- python-version: [3.7]
- steps:
- - uses: actions/checkout@v2
- - name: Setup conda dependencies
- uses: conda-incubator/setup-miniconda@v2
- with:
- auto-update-conda: true
- python-version: ${{ matrix.python-version }}
- - name: Install dependencies
- shell: bash -l {0}
- run: |
- conda install curl -c conda-forge
- conda install pytorch cpuonly -c pytorch
- pip install .[dev,x]
- - name: Run doctest
- shell: bash -l {0}
- run: make doctest