Skip to content

Merge pull request #172 #474

Merge pull request #172

Merge pull request #172 #474

Workflow file for this run

name: Tests
on: [push]
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python: ["3.9", "3.10", "3.11", "3.12"]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: "1.3.2"
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest -k "not connected_to_drone" --cov-report=xml --cov blueye
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS,PYTHON
fail_ci_if_error: false
files: ./coverage.xml
flags: ${{ matrix.os }}_${{ matrix.python }}
name: codecov-umbrella
continue-on-error: true
CheckFormatting:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: "1.3.2"
- name: poetry install
run: poetry install
- name: Check formatting
run: poetry run black --check .
- name: Print formatting diff
run: poetry run black --diff .
if: failure()