Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork45
New CI#64
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
New CI#64
Changes fromall commits
Commits
Show all changes
30 commits Select commitHold shift + click to select a range
5495051 Testing something new
egeakmana9eebda test if it can catch
egeakman3c71b88 fix
egeakman1fbbbef Update CI
egeakman3776069 Update build.yml
egeakman72fdcbe Try using newer version of sphinx
egeakmana4ebf5c revert
egeakman203f985 Upcate CI
egeakman934e9c0 Upcate CI
egeakman7b96c76 Upcate CI
egeakman967d6bc Upcate CI
egeakman5fcbe0a Upcate CI
egeakman4c25617 Upcate CI
egeakman5dae215 Upcate CI
egeakmanc2a43fb Upcate CI
egeakman3afe852 Upcate CI
egeakman8bc458a Upcate CI
egeakman543b739 Upcate CI
egeakman1043b8a Make merge
egeakman1fdaa58 Update CI
egeakman7d4b93c Update CI
egeakmand3a5bdd Update CI
egeakmanb7df869 Update CI
egeakman293e38d Update CI
egeakman151c1c3 Update CI
egeakman1365570 Update CI
egeakman2be2c89 Update CI
egeakman8ec740a Update CI
egeakman839cea6 Update CI
egeakman8b7408d Update CI
egeakmanFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
The table of contents is too big for display.
Diff view
Diff view
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
85 changes: 60 additions & 25 deletions.github/workflows/build.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,40 +1,75 @@ | ||
| name:Tests | ||
| on: | ||
| push: | ||
| branches: | ||
| -'*.*' | ||
| pull_request: | ||
| branches: | ||
| - '*.*' | ||
| jobs: | ||
| checks: | ||
| strategy: | ||
| matrix: | ||
| tool: | ||
| - name: sphinx-lint | ||
| package: sphinx-lint | ||
| command: 'sphinx-lint --enable default-role --ignore .git' | ||
| - name: Line length | ||
| command: 'awk ''{if (length($0) > 80 && length(gensub(/[^ ]/, "", "g")) > 1) {print FILENAME ":" FNR, "line too long:", $0; ERRORS+=1}} END {if (ERRORS>0) {exit 1}}'' $CHANGED_PO_FILES' | ||
| name: ${{ matrix.tool.name }} (${{ matrix.tool.package }}) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| -uses: lots0logs/gh-action-get-changed-files@2.1.4 | ||
| id: changed_files | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.10' | ||
| - name: Install ${{ matrix.tool.package }} | ||
| run: | | ||
| if [ -n "${{ matrix.tool.apt_dependencies }}" ]; then | ||
| sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }} | ||
| fi | ||
| if [ -n "${{ matrix.tool.package }}" ]; then | ||
| python -m pip install --upgrade pip setuptools wheel | ||
| python -m pip install ${{ matrix.tool.package }} | ||
| fi | ||
| - name: Run ${{ matrix.tool.package }} | ||
| env: | ||
| ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }} | ||
| MODIFIED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.modified), ' ') }} | ||
| run: | | ||
| CHANGED_PO_FILES=$(printf "%s %s\n" "$ADDED_FILES" "$MODIFIED_FILES" | tr ' ' '\n' | grep '.po$'; true) | ||
| pwd | ||
| tree -L 2 | ||
| if [ -n "$CHANGED_PO_FILES" ] | ||
| then | ||
| echo "Running on:" $CHANGED_PO_FILES | ||
| ${{ matrix.tool.command }} | ||
| else | ||
| echo "No changed po files, nothing to check." | ||
| fi | ||
| sphinx: | ||
| name: 'Generate docs (sphinx)' | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.10' | ||
| - name: Prepare environment | ||
| run: | | ||
| pwd | ||
| tree -L 2 | ||
| git clone https://github.com/python/cpython.git venv/cpython/ | ||
| python -m pip install --upgrade pip setuptools wheel | ||
| python -m pip install -r requirements.txt -r venv/cpython/Doc/requirements.txt | ||
| - name: Make | ||
| run: make |
6 changes: 6 additions & 0 deletions.gitignore
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -7,3 +7,9 @@ __pycache__/ | ||
| *.pot | ||
| *.po.bak | ||
| locales/ | ||
| venv/ | ||
| .idea/ | ||
| .DS_Store | ||
| .pospell/ | ||
| .potodo/ | ||
| .venv/ | ||
157 changes: 64 additions & 93 deletionsMakefile
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
4 changes: 2 additions & 2 deletionsabout.po
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
4 changes: 2 additions & 2 deletionsbugs.po
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
4 changes: 2 additions & 2 deletionsc-api/abstract.po
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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.