Skip to content

Merge pull request #1 from MrDebugger/fix_ci #5

Merge pull request #1 from MrDebugger/fix_ci

Merge pull request #1 from MrDebugger/fix_ci #5

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel setuptools build
timeout-minutes: 5
- name: Install package
run: |
pip install -e ".[dev]" --no-build-isolation
timeout-minutes: 10
- name: Run linting
run: |
flake8 deproto tests examples
- name: Run tests with coverage
run: |
pytest --cov=deproto tests/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build wheel
- name: Build package
run: python -m build
- name: Check dist files
run: |
ls -l dist/
pip install twine
twine check dist/*