Skip to content

Commit

Permalink
build: Update to latest profile template
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Apr 20, 2023
1 parent c6b6dd7 commit f0d98d0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:
# Don't install editable projects in the current working directory.
# https://pip.pypa.io/en/latest/reference/pip_install/#install-src
- run: pip install --src $GITHUB_WORKSPACE/../src -r requirements.txt
# Google Chrome and ChromeDriver are already included.
# https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md
- if: github.repository == 'open-contracting/standard_profile_template'
run: make update extract
- run: make
# Disable linkcheck as it is too slow for development.
# - run: |
# make linkcheck
# rm -f output.json output.txt
# Google Chrome and ChromeDriver are already included.
# https://help.github.com/en/actions/reference/software-installed-on-github-hosted-runners
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md
- run: pytest -W error
# Deploy the built documentation to the staging directory.
- if: github.event_name == 'push'
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.PRIVATE_KEY }}
known_hosts: standard.open-contracting.org ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWLziEiV46d9iInFXAR/PxPvotcpmMtbwO8GkTF2/AFUkyiSd8/Yg5HXUoWBz7hbRwg2O+q5F1QfD57vevBV7c+JKyBbKVOi/mXaf7uACxer419RTgKcpaMhNRi708XWhNlWiKp3Afs/MDMvMdWSrU+Ht7biNb1OMGjfNMDdlsJxPycxMQ7Fu7i+kdyMkKLYDIHNeEw0aW9PtMTReUE0y/Ghn44PDR2u9/oZsEhC0ELDQUfsjtCcoM91FH1tjRBZkOW/j5940nMoJpbVhFHTC3YY9Mh2kV+N6Whht5nghJ7Jl2vN5W0Uer+TNMVRV4QMu8xK5HXbjKFMpaK+j4gBs9
known_hosts: standard.open-contracting.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGveFGTJ9yyObNGDUCUyzyFkm6Kzh3YqIt1qB7B/KU6E
- if: github.event_name == 'push'
uses: little-core-labs/netrc-creds@v2.1.0
uses: bcomnes/netrc-creds@v2
with:
machine: standard.open-contracting.org
login: manage
Expand All @@ -45,4 +45,5 @@ jobs:
PRODUCTION: ${{ startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/latest' || github.ref == 'refs/heads/1.0' || github.ref == 'refs/heads/1.1' }}
RELEASE: ${{ startsWith(github.ref, 'refs/tags') }}
VERSION: "1.1"
shell: bash
run: curl -sS https://raw.githubusercontent.com/open-contracting/deploy/main/deploy-docs.sh | bash -
13 changes: 13 additions & 0 deletions .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Spell-check
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install codespell
- run: codespell -S .git,docson,locale,examples,country.csv,currency.csv,language.csv,mediaType.csv -L fo,zar .
11 changes: 7 additions & 4 deletions common-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ babel==2.9.1
# sphinx-intl
certifi==2022.12.7
# via
# elasticsearch
# elastic-transport
# requests
# urllib3
cffi==1.15.0
Expand All @@ -47,7 +47,9 @@ docutils==0.18
# via
# myst-parser
# sphinx
elasticsearch==7.17.6
elastic-transport==8.4.0
# via elasticsearch
elasticsearch[requests]==8.6.2
# via ocdsindex
exceptiongroup==1.0.0
# via pytest
Expand Down Expand Up @@ -92,7 +94,7 @@ ocds-babel==0.3.1
# via -r common-requirements.in
ocdsextensionregistry==0.1.12
# via -r common-requirements.in
ocdsindex==0.1.1
ocdsindex==0.2.0
# via -r common-requirements.in
outcome==1.1.0
# via trio
Expand Down Expand Up @@ -124,6 +126,7 @@ pyyaml==5.4.1
# via myst-parser
requests==2.25.1
# via
# elasticsearch
# ocdsextensionregistry
# requests-cache
# sphinx
Expand Down Expand Up @@ -179,7 +182,7 @@ uc-micro-py==1.0.1
# via linkify-it-py
urllib3[secure,socks]==1.26.5
# via
# elasticsearch
# elastic-transport
# requests
# selenium
wheel==0.38.4
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '_static/docson/*.md', '_static/docson/integration/*.md']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '_static/docson/**.html', '_static/docson/**.md']


# -- Options for HTML output -------------------------------------------------
Expand Down

0 comments on commit f0d98d0

Please sign in to comment.