-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from nialov/build-miscellaneous-ci-and-docume…
…ntation-additions Some miscellaneous ci and documentation additions
- Loading branch information
Showing
16 changed files
with
316 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: [master, main] | ||
jobs: | ||
docker-test: | ||
name: Docker install and test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build Docker image | ||
run: docker build -t eis_toolkit -f ./Dockerfile-docs . | ||
- name: Run mkdocs in Docker container | ||
run: | | ||
docker run -v ./site/pdf/:/eis_toolkit/site/pdf/ --env ENABLE_PDF_EXPORT=1 eis_toolkit poetry run mkdocs build | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: document.pdf | ||
path: ./site/pdf/document.pdf | ||
- name: Run pytest in Docker container | ||
run: docker run eis_toolkit poetry run pytest -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM ubuntu:22.04 | ||
|
||
EXPOSE 8888 | ||
EXPOSE 8000 | ||
|
||
WORKDIR /eis_toolkit | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y \ | ||
libpango-1.0-0 \ | ||
libharfbuzz0b \ | ||
libpangoft2-1.0-0 \ | ||
libgdal-dev \ | ||
python3-pip | ||
|
||
RUN pip install poetry pre-commit | ||
|
||
COPY poetry.lock pyproject.toml mkdocs.yml /eis_toolkit/ | ||
COPY docs /eis_toolkit/docs/ | ||
COPY docs_assets /eis_toolkit/docs_assets/ | ||
COPY eis_toolkit /eis_toolkit/eis_toolkit/ | ||
COPY tests /eis_toolkit/tests/ | ||
|
||
RUN poetry install | ||
|
||
# COPY . . |
Oops, something went wrong.