Skip to content

Commit d0a390b

Browse files
test run
1 parent b454213 commit d0a390b

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.github/workflows/l10n_smoke.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ jobs:
8181
if: steps.setup.conclusion == 'success'
8282
env:
8383
FX_EXECUTABLE: /Volumes/${{ steps.setup.outputs.app_name }}/${{ steps.setup.outputs.app_name }}.app/Contents/MacOS/firefox
84-
REPORTABLE: true
8584
run: |
8685
"$FX_EXECUTABLE" --version
8786
echo "TEST_EXIT_CODE=0" >> $GITHUB_ENV
@@ -102,15 +101,15 @@ jobs:
102101
FX_EXECUTABLE: /Volumes/${{ steps.setup.outputs.app_name }}/${{ steps.setup.outputs.app_name }}.app/Contents/MacOS/firefox
103102
REPORTABLE: true
104103
run: |
105-
mv ./ci_pyproject_headed.toml ./pyproject.toml;
104+
mv ./ci_l10n_pyproject_headed.toml ./pyproject.toml;
106105
echo "TEST_EXIT_CODE=0" >> $GITHUB_ENV
107106
echo "SCRIPT_EXIT_CODE=0" >> $GITHUB_ENV
108107
pipenv run python check_l10n_test_cases.py
109108
while IFS= read -r line; do
110109
echo "Running tests for: $line"
111110
pipenv run python l10n_CM/run_l10n.py --ci --fx-executable="$FX_EXECUTABLE" -n 4 $line || SCRIPT_EXIT_CODE=$?
112111
done < selected_l10n_mappings
113-
mv artifacts artifacts-mac || true
112+
mv -n artifacts/* artifacts-mac/ || true
114113
if [ $TEST_EXIT_CODE != 0 ]; then
115114
exit $TEST_EXIT_CODE
116115
fi

ci_l10n_pyproject_headed.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[tool.pytest.ini_options]
2+
generate_report_on_test = true
3+
log_cli = true
4+
log_cli_level = "warn"
5+
markers = [
6+
"audio: test is reliant on audio",
7+
"headed: test must run in headed mode (e.g. uses pynput)",
8+
"incident: incident smoke tests",
9+
"unstable: temporary mark for unstable tests",
10+
"slow: test is clocked at more than 30s on modern machines",
11+
"ci: basic tests to run in ci",
12+
"locale_de: tests run in DE locale versions",
13+
"locale_fr: tests run in FR locale versions",
14+
"locale_gb: tests run in GB locale versions",
15+
"noxvfb: tests that should not run in xvfb sessions"
16+
]
17+
testpaths = [
18+
"l10n_CM/Unified"
19+
]
20+
addopts = "-vs --ci --json-report --json-report-file artifacts/report_headed.json --reruns 3 --reruns-delay 2 -m 'not incident and not unstable and headed' --html=artifacts/report_headed.html"
21+
22+
[tool.ruff]
23+
target-version = "py310"

ci_pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ markers = [
1515
"noxvfb: tests that should not run in xvfb sessions"
1616
]
1717
testpaths = [
18-
"tests"
18+
"tests",
19+
"l10n_CM/Unified"
1920
]
2021
addopts = "-vs --ci --run-headless --json-report --json-report-file artifacts/report.json --reruns 3 --reruns-delay 3 -m 'not incident and not unstable and not headed' --html=artifacts/report.html"
2122

0 commit comments

Comments
 (0)