Skip to content

Commit

Permalink
Update docs runner
Browse files Browse the repository at this point in the history
  • Loading branch information
cjtu committed Aug 21, 2023
1 parent 7552481 commit f519958
Show file tree
Hide file tree
Showing 5 changed files with 261 additions and 62 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code_quality_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1.1.4
uses: snok/install-poetry@v1.3.4
with:
virtualenvs-create: true
virtualenvs-in-project: true
Expand All @@ -37,7 +37,7 @@ jobs:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
run: poetry install --no-interaction
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Check format with black
run: poetry run black --check roughness/ tests/
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/docs_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,19 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1.3.4
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-ubuntu-latest-docs-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --no-interaction --with docs
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- run: pip install -r docs/requirements.txt
- run: mkdocs gh-deploy --force
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ venv.bak/

# mkdocs documentation
/site
/docs/reference

# mypy
.mypy_cache/
Expand Down
Loading

0 comments on commit f519958

Please sign in to comment.