kor

Форк
0
/
test.yml 
52 строки · 1.4 Кб
1
name: test
2
on:
3
  push:
4
    branches: [main]
5
  pull_request:
6
  workflow_dispatch:  # Allows to trigger the workflow manually in GitHub UI
7

8
# If another push to the same PR or branch happens while this workflow is still running,
9
# cancel the earlier run in favor of the next run.
10
#
11
# There's no point in testing an outdated version of the code. GitHub only allows
12
# a limited number of job runners to be active at the same time, so it's better to cancel
13
# pointless jobs early so that more useful jobs can run sooner.
14
concurrency:
15
  group: ${{ github.workflow }}-${{ github.ref }}
16
  cancel-in-progress: true
17

18

19
env:
20
  POETRY_VERSION: "1.3.1"
21

22
jobs:
23
  build:
24
    runs-on: ubuntu-latest
25
    strategy:
26
      matrix:
27
        python-version:
28
          - "3.8"
29
          - "3.9"
30
          - "3.10"
31
          - "3.11"
32
    steps:
33
      - uses: actions/checkout@v3
34
      - name: Install poetry
35
        run: pipx install poetry==$POETRY_VERSION
36
      - name: Set up Python ${{ matrix.python-version }}
37
        uses: actions/setup-python@v4
38
        with:
39
          python-version: ${{ matrix.python-version }}
40
          cache: "poetry"
41
      - name: Install dependencies
42
        run: poetry install --with test -E html
43
      - name: Run unit tests
44
        run: |
45
          poetry run poe test
46

47
  pydantic-compatibility:
48
    uses:
49
      ./.github/workflows/_pydantic_compatibility.yml
50
    with:
51
      working-directory: .
52
    secrets: inherit
53

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.