Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding url link checking to repo #366

Merged
merged 12 commits into from
Jan 5, 2025
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ jobs:
cache-environment: true
post-cleanup: 'all'

- name: install dependencies run tests
- name: install dependencies
shell: bash -el {0}
run: |
python -m pip install .[tests]

run: python -m pip install .[tests]

- name: Test with pytest
shell: bash -el {0}
run: |
Expand Down
39 changes: 21 additions & 18 deletions .github/workflows/documentation_update.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
name: documentation release

on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
push:
branches:
- main
tags:
- '*'


permissions:
contents: write

jobs:
testing:
test:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: checkout actions
uses: actions/checkout@v4

- name: Install system packages
run: |
sudo apt-get update -y
sudo apt-get install -y libgl1 libglx-mesa0 libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev libosmesa6 libosmesa6-dev libgles2-mesa-dev libarchive-dev libpangocairo-1.0-0

- name: checkout actions
uses: actions/checkout@v4

- uses: mamba-org/setup-micromamba@v1
with:
Expand All @@ -36,23 +35,27 @@ jobs:
cache-environment: true
post-cleanup: 'all'

- name: install package
run: |
pip install --upgrade pip
pip install .[docs]
- name: install dependencies
shell: bash -el {0}
run: python -m pip install .[docs]

- name: Sphinx build tagged version
if: startsWith(github.ref, 'refs/tags/')
shell: bash -el {0}
run: |
sphinx-build docs _build/${{ github.ref_name }}
rm -rf _build/stable
mkdir -p _build/stable
sphinx-build docs _build/stable
sphinx-build -b linkcheck docs _build/stable

- name: Sphinx build dev version
if: (github.event_name == 'push' || github.event_name == 'pull_request') && !startsWith(github.ref, 'refs/tags/')
shell: bash -el {0}
run: |
rm -rf _build/dev
mkdir -p _build/dev
sphinx-build docs _build/dev
sphinx-build -b linkcheck docs _build/dev

- name: Deploy docs to GitHub Pages
if: github.event_name == 'push' || startsWith(github.ref, 'refs/tags/')
uses: peaceiris/actions-gh-pages@v4
Expand Down
2 changes: 1 addition & 1 deletion docs/install.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Install
=======

Paramak is distributed via `PyPI <https://pypi.org/project/paramak/>`_ and can be installed using pip.
Paramak is distributed via `PyPI <https://pypi.ohkrg/project/paramak/>`_ and can be installed using pip.
shimwell marked this conversation as resolved.
Show resolved Hide resolved

.. code-block:: bash

Expand Down
Loading