mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
76 lines
2.0 KiB
YAML
76 lines
2.0 KiB
YAML
name: ci
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-24.04, windows-2022]
|
|
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8"]
|
|
environment: ['3.8', '3.13', '3.12', '3.11', '3.10', '3.9', 'interpreter']
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- uses: actions/setup-python@v5
|
|
if: ${{ matrix.environment != 'interpreter' }}
|
|
with:
|
|
python-version: ${{ matrix.environment }}
|
|
allow-prereleases: true
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
allow-prereleases: true
|
|
|
|
- name: Install dependencies
|
|
run: 'pip install .[testing]'
|
|
|
|
- name: Run tests
|
|
run: python -m pytest
|
|
env:
|
|
JEDI_TEST_ENVIRONMENT: ${{ matrix.environment }}
|
|
|
|
code-quality:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install dependencies
|
|
run: 'pip install .[qa]'
|
|
|
|
- name: Run tests
|
|
run: |
|
|
python -m flake8 jedi test setup.py
|
|
python -m mypy jedi sith.py setup.py
|
|
|
|
coverage:
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install dependencies
|
|
run: 'pip install .[testing] coverage'
|
|
|
|
- name: Run tests
|
|
run: |
|
|
python -m coverage run --source jedi -m pytest
|
|
python -m coverage report
|
|
|
|
- name: Upload coverage data
|
|
run: |
|
|
pip install --quiet codecov coveralls
|
|
python -m coverage xml
|
|
python -m coverage report -m
|
|
bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy -X search -X fix -X xcode -f coverage.xml
|