fix(nyz): fix high sphinx version doc bug #135
This file contains hidden or 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
name: Style and Badge | |
on: [push, pull_request] | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install | |
run: | | |
python -m pip install . | |
python -c 'import core' | |
- name: Code style | |
run: | | |
python -m pip install .[style] | |
bash format.sh ./core --test | |
flake8 ./core | |
- name: Download cloc | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y cloc | |
- name: Get the Numbers | |
run: | | |
cloc . | |
echo "CODE_LINES=$(./cloc.sh --loc)" >> $GITHUB_ENV | |
echo "COMMENT_LINES=$(./cloc.sh --percentage)%" >> $GITHUB_ENV | |
- name: Create Lines-of-Code-Badge | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.GIST_SECRET }} | |
gistID: ${{ secrets.BADGE_GIST_ID }} | |
filename: loc.json | |
label: Lines of Code | |
message: ${{ env.CODE_LINES }} | |
color: lightgrey | |
- name: Create Comments-Badge | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.GIST_SECRET }} | |
gistID: ${{ secrets.BADGE_GIST_ID }} | |
filename: comments.json | |
label: Comments | |
message: ${{ env.COMMENT_LINES }} | |
color: green | |