Skip to content

Commit

Permalink
ci: add docs job
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Jul 29, 2024
1 parent 9f1e69d commit 26ae1a1
Showing 1 changed file with 23 additions and 65 deletions.
88 changes: 23 additions & 65 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,69 +36,27 @@ jobs:
- name: Run Tests
run: |
rye run run-tests
# test:
# name: Tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Install Rye
# run: |
# curl -sSf https://rye.astral.sh/get | bash
# - run: |
# rye run run-tests

# type_check:
# name: Type Check
# needs: [build]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python 3.10
# uses: actions/setup-python@v2
# with:
# python-version: "3.10"
# - name: Download artifacts
# uses: actions/download-artifact@v2
# with:
# name: artifacts
# path: artifacts
# - name: Install packages
# run: |
# pip install -r artifacts/dev-requirements.txt
# pip install --ignore-installed artifacts/*.whl
# - name: Run MypPy
# run: |
# mypy momba
# documentation:
# name: Documentation
# needs: [build]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python 3.10
# uses: actions/setup-python@v2
# with:
# python-version: "3.10"
# - name: Download artifacts
# uses: actions/download-artifact@v2
# with:
# name: artifacts
# path: artifacts
# - name: Install packages
# run: |
# pip install -r artifacts/dev-requirements.txt
# pip install --ignore-installed artifacts/*.whl
# - name: Build documentation
# run: |
# sphinx-build -b dirhtml docs build/docs
# - name: Create CNAME file
# run: |
# echo "momba.dev" > build/docs/CNAME
# - name: Deploy documentation
# if: github.ref == 'refs/heads/main'
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./build/docs
docs:
name: Docs
needs: [check, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rye
uses: eifinger/setup-rye@v4
- name: Install Momba
run: |
rye sync --all-features
- name: Run Tests
run: |
rye run build-docs
- name: Create CNAME file
run: |
echo "momba.dev" > build/docs/CNAME
- name: Deploy documentation
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs

0 comments on commit 26ae1a1

Please sign in to comment.