|
@@ -3,12 +3,16 @@ name: Run Tests
|
|
|
on: [push]
|
|
|
|
|
|
jobs:
|
|
|
- pytest:
|
|
|
+ test:
|
|
|
strategy:
|
|
|
matrix:
|
|
|
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
|
|
+ os: [ubuntu-latest, windows-latest]
|
|
|
+ exclude: # just test lowest and highest python version on windows
|
|
|
+ - os: windows-latest
|
|
|
+ python-version: ["3.8", "3.9", "3.10"]
|
|
|
fail-fast: false
|
|
|
- runs-on: ubuntu-latest
|
|
|
+ runs-on: ${{ matrix.os }}
|
|
|
timeout-minutes: 15
|
|
|
steps:
|
|
|
- uses: actions/checkout@v3
|
|
@@ -16,6 +20,11 @@ jobs:
|
|
|
uses: actions/setup-python@v4
|
|
|
with:
|
|
|
python-version: ${{ matrix.python }}
|
|
|
+ - name: Set up Git Bash (Windows)
|
|
|
+ if: runner.os == 'Windows'
|
|
|
+ run: |
|
|
|
+ echo "C:\Program Files\Git\bin\bash.exe" > $GITHUB_PATH
|
|
|
+ shell: bash
|
|
|
- name: set up Poetry
|
|
|
uses: abatilo/actions-poetry@v2.0.0
|
|
|
with:
|
|
@@ -62,36 +71,3 @@ jobs:
|
|
|
slack_webhook_url: ${{ secrets.SLACK_ROBOTICS_CI_WEBHOOK }}
|
|
|
channel: "robotik-ci"
|
|
|
name: "NiceGUI"
|
|
|
-
|
|
|
- windows:
|
|
|
- runs-on: windows-latest
|
|
|
- strategy:
|
|
|
- fail-fast: false
|
|
|
- matrix:
|
|
|
- python-version: ["3.7", "3.11"]
|
|
|
- steps:
|
|
|
- - name: Check out repository
|
|
|
- uses: actions/checkout@v2
|
|
|
- - name: Set up Python ${{ matrix.python-version }}
|
|
|
- uses: actions/setup-python@v2
|
|
|
- with:
|
|
|
- python-version: ${{ matrix.python-version }}
|
|
|
- - name: set up Poetry
|
|
|
- uses: abatilo/actions-poetry@v2.0.0
|
|
|
- with:
|
|
|
- poetry-version: "1.3.1"
|
|
|
- - name: Set up Git Bash (Windows)
|
|
|
- if: runner.os == 'Windows'
|
|
|
- run: |
|
|
|
- echo "C:\Program Files\Git\bin\bash.exe" > $GITHUB_PATH
|
|
|
- shell: bash
|
|
|
- - name: install dependencies
|
|
|
- run: |
|
|
|
- poetry config virtualenvs.create false
|
|
|
- poetry install
|
|
|
- # install packages to run the examples
|
|
|
- pip install opencv-python opencv-contrib-python-headless httpx replicate
|
|
|
- # try fix issue with importlib_resources
|
|
|
- pip install importlib-resources
|
|
|
- - name: test startup
|
|
|
- run: ./test_startup.sh
|