Skip to content

Merge pull request #98 from jjmccollum/97-positive-proportionsproport… #135

Merge pull request #98 from jjmccollum/97-positive-proportionsproport…

Merge pull request #98 from jjmccollum/97-positive-proportionsproport… #135

Workflow file for this run

name: docs
on:
push:
branches: main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Install dependencies for Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- run: poetry install
- name: Docs
run: |
poetry run sphinx-build -b html docs gh-pages
- name: Coverage
run: |
poetry run coverage run -m pytest
poetry run coverage html --directory gh-pages/coverage
rm gh-pages/coverage/.gitignore
echo "COVERAGE=$(poetry run coverage report --precision 2 | grep TOTAL | tr -s ' ' | cut -f 4 -d " ")" >> $GITHUB_ENV
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: paper.md
- name: Move PDF
run: |
mv paper.pdf gh-pages/joss-draft.pdf
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: gh-pages # The folder the action should deploy.
- name: Create Coverage Badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: 62997df516f95bbda6eaefa02b9570aa
filename: coverage-badge.json
label: coverage
message: ${{ env.COVERAGE }}
color: green