[Improve] 兼容flask_sqlalchemy 3.1.1 #94
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
name: build | |
on: | |
push: | |
branches: | |
- develop | |
- "tests/**" | |
paths-ignore: | |
- "docs/**" | |
- "README.md" | |
pull_request: | |
branches: | |
- develop | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build_cpu: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.7", "3.8"] | |
node-version: ["16", "17", "18"] | |
include: | |
- python-version: "3.7" | |
os: windows-latest | |
gdal-whl-url: https://download.lfd.uci.edu/pythonlibs/archived/cp37/GDAL-3.3.3-cp37-cp37m-win_amd64.whl | |
- python-version: "3.7" | |
os: ubuntu-latest | |
gdal-whl-url: https://versaweb.dl.sourceforge.net/project/gdal-wheels-for-linux/GDAL-3.4.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl | |
- python-version: "3.8" | |
os: windows-latest | |
gdal-whl-url: https://download.lfd.uci.edu/pythonlibs/archived/GDAL-3.3.3-cp38-cp38-win_amd64.whl | |
- python-version: "3.8" | |
os: ubuntu-latest | |
gdal-whl-url: https://versaweb.dl.sourceforge.net/project/gdal-wheels-for-linux/GDAL-3.4.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Upgrade pip | |
run: python -m pip install pip --upgrade --user | |
- name: Install PaddlePaddle | |
run: python -m pip install paddlepaddle==2.4.0 -i https://pypi.tuna.tsinghua.edu.cn/simple | |
- name: Install PaddleRS | |
run: | | |
python -m pip install lap==0.4.0 | |
python -m pip install -r PaddleRS/requirements.txt | |
python -m pip install -e PaddleRS | |
- name: Install GDAL | |
run: python -m pip install ${{ matrix.gdal-whl-url }} | |
- name: Test installation of PaddleRS | |
run: python -c "import paddlers; print(paddlers.__version__)" | |
- name: Set up backend | |
run: | | |
pip install -r backend/requirements.txt | |
- name: Set up frontend | |
run: | | |
cd frontend && npm install | |
npm run build |