-
Notifications
You must be signed in to change notification settings - Fork 13
42 lines (40 loc) · 1.31 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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", "3.13"]
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 --all-extras
- 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 }}