]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge pull request #2342 from lonvia/icu-tokenizer-ci
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 22 May 2021 08:36:35 +0000 (10:36 +0200)
committerGitHub <noreply@github.com>
Sat, 22 May 2021 08:36:35 +0000 (10:36 +0200)
Add BDD tests with icu tokenizer to CI runs

.github/workflows/ci-tests.yml
test/bdd/steps/nominatim_environment.py

index 3d473751c01614594b8bec09ea0a8d201d2c84d5..b60507bc4511599922d981dbbae2b4135c8ae222 100644 (file)
@@ -71,6 +71,11 @@ jobs:
                   vendor/bin/phpcov merge --clover ../../coverage-bdd.xml ./cov
               working-directory: Nominatim/test/bdd
 
+            - name: BDD tests (legacy_icu tokenizer)
+              run: |
+                  behave -DREMOVE_TEMPLATE=1 -DBUILDDIR=$GITHUB_WORKSPACE/build -DTOKENIZER=legacy_icu --format=progress3
+              working-directory: Nominatim/test/bdd
+
             - name: Upload coverage to Codecov
               uses: codecov/codecov-action@v1
               with:
index 0e986f217dc20d394085b6cf80ee984d2943b542..1deb43f38a2f4fae6fb8820226903701b0ea55bd 100644 (file)
@@ -198,8 +198,7 @@ class NominatimEnvironment:
 
                 try:
                     self.run_nominatim('import', '--osm-file', str(self.api_test_file))
-                    if self.tokenizer != 'legacy_icu':
-                        self.run_nominatim('add-data', '--tiger-data', str((testdata / 'tiger').resolve()))
+                    self.run_nominatim('add-data', '--tiger-data', str((testdata / 'tiger').resolve()))
                     self.run_nominatim('freeze')
 
                     if self.tokenizer != 'legacy_icu':