Skip to content

Commit

Permalink
wip: move poetry setup inside the docker
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Mar 9, 2023
1 parent 9b140a2 commit 1cb78c5
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/ci-sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,19 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4.2.0
with:
python-version: "3.10"
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# Install Poetry and dependencies
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
poetry config virtualenvs.in-project false
poetry install --all-extras
pip install jinja2==3.0.0
- uses: actions/checkout@v3
- name: Sphinx Build
# You may pin to the exact commit or the version.
# uses: ammaraskar/sphinx-action@8b4f60114d7fd1faeba1a712269168508d4750d2
uses: ammaraskar/sphinx-action@0.4
uses: ammaraskar/sphinx-action@master
with:
# The folder containing your sphinx docs.
docs-folder: docs/
pre-build-command: |
pip install -U pip
python -c "import sys; print(sys.version)"
pip install poetry
poetry config virtualenvs.in-project false
poetry install --all-extras
# The command used to build your documentation.
build-command: make html #"-W --keep-going" # -n"

0 comments on commit 1cb78c5

Please sign in to comment.