mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
Add experimental Windows CI workflow
This commit is contained in:
44
.github/workflows/ci-tests-windows.yml
vendored
Normal file
44
.github/workflows/ci-tests-windows.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: CI Tests (Windows)
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
strategy:
|
||||
matrix:
|
||||
flavour: ["windows-latest"]
|
||||
include:
|
||||
- flavour: windows-latest
|
||||
runner: windows-latest
|
||||
python: '3.11'
|
||||
|
||||
runs-on: ${{ matrix.runner }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
cache: pip
|
||||
|
||||
- name: Install test prerequisites
|
||||
run: |
|
||||
python -m pip install -U pip
|
||||
python -m pip install \
|
||||
pytest pytest-asyncio \
|
||||
"psycopg[binary]!=3.3.0" \
|
||||
python-dotenv pyyaml jinja2 psutil sqlalchemy
|
||||
|
||||
- name: Python unit tests (Windows subset)
|
||||
run: |
|
||||
python -m pytest \
|
||||
test/python/utils \
|
||||
test/python/config \
|
||||
test/python/api/test_api_types.py \
|
||||
test/python/api/search/test_query.py \
|
||||
test/python/api/query_processing/test_regex_replace.py \
|
||||
test/python/api/query_processing/test_split_japanese_phrases.py
|
||||
34
.github/workflows/windows-ci.yml
vendored
Normal file
34
.github/workflows/windows-ci.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Windows CI (experimental)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
windows-smoke:
|
||||
runs-on: windows-latest
|
||||
continue-on-error: true #this is a smoke test (experimental); it won't block merges
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
cache: pip
|
||||
cache-dependency-path: |
|
||||
packaging/nominatim-db/pyproject.toml
|
||||
packaging/nominatim-api/pyproject.toml
|
||||
|
||||
- name: Install latest flake8
|
||||
run: python -m pip install -U pip flake8
|
||||
|
||||
- name: Python linting
|
||||
run: python -m flake8 src test/python test/bdd
|
||||
|
||||
- name: Compile Python sources (smoke)
|
||||
run: python -m compileall src/nominatim_db src/nominatim_api nominatim-cli.py
|
||||
Reference in New Issue
Block a user