0.13
Working Branch
#1147
Workflow file for this run
This file contains 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: Continuous Integration | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'poetry' | |
- name: Install Dependencies | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade setuptools | |
poetry env use ${{ matrix.python-version }} | |
poetry install | |
- name: Run Tests | |
run: poetry run pytest --cov nodestream --cov-report term --cov-report xml -m "not e2e" | |
- name: Run Lints | |
run: | | |
poetry run ruff check nodestream tests | |
poetry run black nodestream tests --check | |
poetry run isort nodestream tests --check-only | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: ${{ matrix.python-version }}-${{ matrix.os }} |