File: test.yml

package info (click to toggle)
python-ecs-logging 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 344 kB
  • sloc: python: 1,116; sh: 30; makefile: 7
file content (51 lines) | stat: -rw-r--r-- 1,186 bytes parent folder | download
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
43
44
45
46
47
48
49
50
51
name: test

on:
  push:
    branches: [ "main" ]
    paths-ignore: [ '*.md', '*.asciidoc' ]
  pull_request:
    branches: [ "main" ]
    paths-ignore: [ '*.md', '*.asciidoc' ]

permissions:
  contents: read


## Concurrency is only allowed in the main branch.
## So old builds, running for old commits within the same Pull Request, are cancelled
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:

  pre-commit:
    name: Run pre-commit
    runs-on: ubuntu-latest
    steps:
    - uses: elastic/oblt-actions/pre-commit@v1

  lint:
    runs-on: ubuntu-latest
    timeout-minutes: 5
    steps:
    - uses: actions/checkout@v6
    - uses: actions/setup-python@v6
      with:
        python-version: '3.10'
    - run: .ci/scripts/lint.sh

  test:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    strategy:
      matrix:
        python: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14' ]
      fail-fast: false
    steps:
    - uses: actions/checkout@v6
    - uses: actions/setup-python@v6
      with:
        python-version: ${{ matrix.python }}
    - run: .ci/scripts/test.sh ${{ matrix.python }}