mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-30 02:37:26 +02:00
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:
commit
809d43b34b
4 changed files with 37 additions and 49 deletions
38
.github/workflows/continuous-integration.yml
vendored
38
.github/workflows/continuous-integration.yml
vendored
|
@ -21,10 +21,44 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8.14]
|
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/
|
||||||
|
|
||||||
|
build-windows:
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [ 3.9.13 ]
|
||||||
env:
|
env:
|
||||||
MESHROOM_NODES_PATH: '${{ github.workspace }}/../meshroomNodes/meshroom/nodes'
|
MESHROOM_NODES_PATH: '${{ github.workspace }}/../meshroomNodes/meshroom/nodes'
|
||||||
|
|
||||||
|
|
23
.travis.yml
23
.travis.yml
|
@ -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"
|
|
|
@ -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).
|
See [results of the pipeline on sketchfab](http://sketchfab.com/AliceVision).
|
||||||
|
|
||||||
Continuous integration:
|
Continuous integration: [](https://github.com/alicevision/Meshroom/actions/workflows/continuous-integration.yml)
|
||||||
* Windows: [](https://ci.appveyor.com/project/AliceVision/meshroom/branch/develop)
|
|
||||||
* Linux: [](https://travis-ci.org/alicevision/meshroom)
|
|
||||||
|
|
||||||
|
|
||||||
## Photogrammetry
|
## Photogrammetry
|
||||||
|
|
21
appveyor.yml
21
appveyor.yml
|
@ -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
|
|
Loading…
Add table
Reference in a new issue