-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more tests for the autotrans tools (#48)
- Loading branch information
Showing
9 changed files
with
202 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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,32 @@ | ||
name: CI-i18n-with-apicall | ||
|
||
# workflow for translate script testing | ||
# with apicall testing, so runs scheduled on main branch or triggered manually | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 1 * *" # every month on the 1st | ||
workflow_dispatch: | ||
|
||
jobs: | ||
auto-trans-tool-test-with-apicall: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install aiida-core-i18n | ||
run: | | ||
pip install -e .[dev] | ||
- name: Run tests | ||
run: | | ||
pytest -k "apicall" tests -v --cov | ||
env: | ||
DEEPL_TOKEN: ${{ secrets.DEEPL_TOKEN }} |
This file contains 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,44 @@ | ||
name: CI-i18n | ||
|
||
# workflow for translate script testing | ||
|
||
on: | ||
pull_request: | ||
paths_ignore: | ||
- "translations/**" | ||
- "locale_sources/**" | ||
- aiida-core | ||
push: | ||
paths_ignore: | ||
- "translations/**" | ||
- "locale_sources/**" | ||
- aiida-core | ||
branches: | ||
- main | ||
|
||
jobs: | ||
auto-trans-tool-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install aiida-core-i18n | ||
run: | | ||
pip install -e .[dev] | ||
- name: Run tests | ||
run: | | ||
pytest -k "not apicall" tests -v --cov | ||
- name: Upload coverage report | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
name: aiida-core-i18n | ||
fail_ci_if_error: false # don't fail job, if coverage upload fails |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
36 changes: 36 additions & 0 deletions
36
tests/test_translate/test_po_translate_override_False_.txt
This file contains 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,36 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) 2014-2020, ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE (Theory and Simulation of Materials (THEOS) and National Centre for Computational Design and Discovery of Novel Materials (NCCR MARVEL)), Switzerland and ROBERT BOSCH LLC, USA. All rights reserved | ||
# This file is distributed under the same license as the AiiDA package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: AiiDA 2.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2022-11-03 14:17+0000\n" | ||
"PO-Revision-Date: 2022-11-03 14:19+0000\n" | ||
"Language-Team: Chinese (China) (https://www.transifex.com/aiidateam/teams/98967/zh_CN/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Language: zh_CN\n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
|
||
#: ../../source/internals/engine.rst:5 | ||
msgid "Engine" | ||
msgstr "引擎(已翻译)" | ||
|
||
#: ../../source/internals/engine.rst:5 | ||
msgid "Engine" | ||
msgstr "Engine" | ||
|
||
#: ../../source/internals/engine.rst:38 | ||
msgid "The ``WorkflowNode`` example" | ||
msgstr "The ``WorkflowNode`` example" | ||
|
||
#: ../../source/internals/engine.rst:19 | ||
msgid "" | ||
"There are several methods which the internal classes of AiiDA use to control" | ||
" the caching mechanism:" | ||
msgstr "There are several methods which the internal classes of AiiDA use to control the caching mechanism:" |
This file contains 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,36 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) 2014-2020, ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE (Theory and Simulation of Materials (THEOS) and National Centre for Computational Design and Discovery of Novel Materials (NCCR MARVEL)), Switzerland and ROBERT BOSCH LLC, USA. All rights reserved | ||
# This file is distributed under the same license as the AiiDA package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: AiiDA 2.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2022-11-03 14:17+0000\n" | ||
"PO-Revision-Date: 2022-11-03 14:19+0000\n" | ||
"Language-Team: Chinese (China) (https://www.transifex.com/aiidateam/teams/98967/zh_CN/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Language: zh_CN\n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
|
||
#: ../../source/internals/engine.rst:5 | ||
msgid "Engine" | ||
msgstr "Engine" | ||
|
||
#: ../../source/internals/engine.rst:5 | ||
msgid "Engine" | ||
msgstr "Engine" | ||
|
||
#: ../../source/internals/engine.rst:38 | ||
msgid "The ``WorkflowNode`` example" | ||
msgstr "The ``WorkflowNode`` example" | ||
|
||
#: ../../source/internals/engine.rst:19 | ||
msgid "" | ||
"There are several methods which the internal classes of AiiDA use to control" | ||
" the caching mechanism:" | ||
msgstr "There are several methods which the internal classes of AiiDA use to control the caching mechanism:" |