Merge pull request #123 from C4dynamics/dev #150
This file contains hidden or 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: CI Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| build-test: | |
| name: Test Run (${{ matrix.python-version }}, ${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
| python-version: ["3.9", "3.10", "3.11", "3.12"] # update also in setup.py, pyprogect.yaml, readme.md, c4dynamics_setup.ipynb | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install open3d | |
| - name: List installed packages | |
| run: pip list | |
| - name: Run unittests | |
| run: | | |
| python -m unittest discover -s tests -p "test_*.py" | |
| - name: Upload coverage to Codecov | |
| if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'}} | |
| uses: codecov/codecov-action@v3 | |