Skip to content

Add Python 3.13 support #117

Add Python 3.13 support

Add Python 3.13 support #117

Workflow file for this run

name: NDBC API CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- "releases/*"
jobs:
Unit-Tests:
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.13"]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install
- name: Run tests
run: |
poetry run python -m pytest
Coverage:
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install
- name: Generate coverage report
run: |
poetry run coverage run --source ndbc_api -m pytest --run-slow --run-private tests/
poetry run coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}