File: style.yaml

package info (click to toggle)
python-eventlet 0.40.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,184 kB
  • sloc: python: 25,114; sh: 76; makefile: 32
file content (42 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download | duplicates (2)
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: style
on:
  push:
  pull_request:
jobs:
  style:
    runs-on: ubuntu-latest
    # https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012/5
    if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'eventlet/eventlet'
    timeout-minutes: 5

    steps:
      - uses: actions/checkout@v4

      - name: cache pip
        uses: actions/cache@v4
        with:
          path: ~/.cache/pip
          key: ${{ runner.os }}-pip-${{ hashFiles('.github/workflows/style.yaml') }}
          restore-keys: |
            ${{ runner.os }}-pip-
            ${{ runner.os }}-
      - name: cache tox
        uses: actions/cache@v4
        with:
          path: .tox
          key: ${{ runner.os }}-tox-style-${{ hashFiles('tox.ini') }}
          restore-keys: |
            ${{ runner.os }}-tox-style-
            ${{ runner.os }}-tox-
            ${{ runner.os }}-

      - name: setup python
        uses: actions/setup-python@v5
        with:
          python-version: 3.x
      - name: install tox
        run: pip install tox
      - name: run tests
        run: |
          tox --verbose -e pep8
          tox --verbose -e lint