/
githubmirror
/
gpt-pilot
Обзор
Документация
Войти
/
githubmirror
/
gpt-pilot
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/ci.yml
35 строк
877 B
Senko Rasic
run tests on PRs targeting the rewrite branch
24 май 2024, 16:31
24 май 2024, 16:31
02994dc
Код
Авторство
О чём код?
name: Run unit tests on: push: branches: [ "main" ] pull_request: branches: [ "main", "rewrite" ] jobs: build: runs-on: ${{ matrix.os }} timeout-minutes: 10 strategy: fail-fast: false matrix: python-version: ["3.9", "3.12"] os: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install poetry poetry install --with=dev - name: Lint with ruff run: poetry run ruff check --output-format github - name: Check code style with ruff run: poetry run ruff format --check --diff - name: Test with pytest run: poetry run pytest