Merge pull request #2551 from alicevision/ci/reworkWindowsCI

[ci] Use GitHub's workflows for the Windows CI instead of appveyor
This commit is contained in:
Fabien Castan 2024-09-27 14:49:00 +02:00 committed by GitHub
commit 809d43b34b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 37 additions and 49 deletions

View file

@ -21,10 +21,10 @@ env:
jobs:
build-linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8.14]
python-version: [ 3.9.13 ]
env:
MESHROOM_NODES_PATH: '${{ github.workspace }}/../meshroomNodes/meshroom/nodes'
@ -53,3 +53,37 @@ jobs:
- name: Test with pytest
run: |
pytest tests/
build-windows:
runs-on: windows-latest
strategy:
matrix:
python-version: [ 3.9.13 ]
env:
MESHROOM_NODES_PATH: '${{ github.workspace }}/../meshroomNodes/meshroom/nodes'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Clone meshroomNodes
run: |
cd ..
git clone https://github.com/alicevision/meshroomNodes.git
cd ${{ github.workspace }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -r requirements.txt -r dev_requirements.txt --timeout 45
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest tests/

View file

@ -1,23 +0,0 @@
language: python
dist: bionic
python:
- "3.6"
- "3.7"
- "3.8"
install:
- "pip install -r requirements.txt -r dev_requirements.txt --timeout 45"
- pip install flake8
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- "pytest tests/"
after_success:
- "python setup.py build"

View file

@ -8,9 +8,7 @@ Learn more details about the pipeline on [AliceVision website](http://alicevisio
See [results of the pipeline on sketchfab](http://sketchfab.com/AliceVision).
Continuous integration:
* Windows: [![Build status](https://ci.appveyor.com/api/projects/status/25sd7lfr3v0rnvni/branch/develop?svg=true)](https://ci.appveyor.com/project/AliceVision/meshroom/branch/develop)
* Linux: [![Build Status](https://travis-ci.org/alicevision/meshroom.svg?branch=develop)](https://travis-ci.org/alicevision/meshroom)
Continuous integration: [![Build status](https://github.com/alicevision/Meshroom/actions/workflows/continuous-integration.yml/badge.svg?branch=develop)](https://github.com/alicevision/Meshroom/actions/workflows/continuous-integration.yml)
## Photogrammetry

View file

@ -1,21 +0,0 @@
image: Visual Studio 2019
environment:
PYTHON: "C:\\Python38-x64"
install:
- "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- "pip install -r requirements.txt -r dev_requirements.txt --timeout 45"
- "cd .. && git clone https://github.com/alicevision/meshroomNodes && cd Meshroom"
- "set MESHROOM_NODES_PATH=%MESHROOM_NODES_PATH%;%cd%/../meshroomNodes/meshroom/nodes"
build: off
test_script:
- "pytest tests/"
after_test:
- "python setup.py build"
- 7z a meshroomWin64snapshot%APPVEYOR_PULL_REQUEST_HEAD_COMMIT%.zip ./build/*
artifacts:
- path: meshroomWin64*.zip