-
-
Notifications
You must be signed in to change notification settings - Fork 17
Add main workflow #19
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
772c1d0
Translate about.po as test
thepetk ef9480d
Update requirements.txt
thepetk a64bb7f
Update check_spelling
thepetk 8bc51f8
Add about.txt dictionary
thepetk 758df6e
add main workflow
thepetk 6172db2
Rewrap about.po
thepetk 25178aa
fix workflow step
thepetk 8b23759
Update requirements.txt
thepetk c7b345a
Update .github/workflows/main.yaml
thepetk bfe2389
Update about.po
thepetk 3e6d3d1
Update about.po
thepetk c7d972d
Update about.po
thepetk 88b9638
Update workflow
thepetk a5c4c57
Update about.po
thepetk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
.github/workflows/main.yaml
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- 3.* | ||
- main | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
submodules: "true" | ||
fetch-depth: 2 | ||
- name: Setup python | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
- name: Configure dpkg/apt | ||
uses: abbbi/github-actions-tune@81fb919e588c20b7ab52b2cac097d2efd765c714 # v1 | ||
- name: Disable triggers from postgresql-common | ||
run: sudo sed -i '/postgresql-common/d' /var/lib/dpkg/triggers/File | ||
- name: Install system deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y hunspell hunspell-el gettext language-pack-el locales-all | ||
- name: Install python deps | ||
run: | | ||
python -m pip install -r requirements.txt | ||
- name: List packages and versions | ||
run: | | ||
pip list | ||
pospell --version | ||
powrap --version | ||
- name: Get list with updated .po archives (PR-only) | ||
if: github.event_name == 'pull_request' | ||
id: changed-po-files | ||
uses: tj-actions/changed-files@2d756ea4c53f7f6b397767d8723b3a10a9f35bf2 # v44 | ||
with: | ||
files: | | ||
**/*.po | ||
- name: Create list with .po files to check | ||
id: po-files-to-check | ||
env: | ||
PO_FILES_TO_CHECK: ${{ steps.changed-po-files.conclusion == 'skipped' && '**/*.po' || steps.changed-po-files.outputs.all_changed_files }} | ||
run: | | ||
echo "po_files_to_check=$PO_FILES_TO_CHECK" >> $GITHUB_OUTPUT | ||
echo "any_po_files_to_check=`test -n \"$PO_FILES_TO_CHECK\" && echo true || echo false`" >> $GITHUB_OUTPUT | ||
- name: Show outputs of the previous steps for debuging purposes | ||
env: | ||
CHANGED_PO_FILES: ${{ toJson(steps.changed-po-files) }} | ||
PO_FILES_TO_CHECK: ${{ toJson(steps.po-files-to-check) }} | ||
run: | | ||
echo "steps.changed-po-files=$PO_FILES_TO_CHECK" | ||
echo "steps.po-files-to-change.$CHANGED_PO_FILES" | ||
- name: Powrap | ||
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true' | ||
run: powrap --check --quiet ${{ steps.po-files-to-check.outputs.po_files_to_check }} | ||
- name: Pospell | ||
if: steps.po-files-to-check.outputs.any_po_files_to_check == 'true' | ||
run: python scripts/check_spelling.py ${{ steps.po-files-to-check.outputs.po_files_to_check }} |
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
1 change: 1 addition & 0 deletions
dictionaries/about.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
L |
3 changes: 2 additions & 1 deletion
requirements.txt
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 +1,2 @@ | ||
poutils==0.13.0 | ||
poutils==0.15.4 | ||
pospell==1.3 |
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
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.