File: build.yml

package info (click to toggle)
python-clevercsv 0.8.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,080 kB
  • sloc: python: 6,211; ansic: 870; makefile: 90
file content (59 lines) | stat: -rw-r--r-- 1,306 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
52
53
54
55
56
57
58
59
name: build

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
  schedule:
    - cron: 53 18 */10 * *

jobs:
  code-quality:
    name: Code quality checks for CleverCSV
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3

      # NOTE: Keep versions in sync with .pre-commit-config.yaml

      - name: Run black
        uses: psf/black@stable
        with:
          version: "23.3.0"

      - name: Run isort
        uses: jamescurtin/isort-action@master
        with:
          isortVersion: "5.12.0"

      - name: Run ruff
        uses: chartboost/ruff-action@v1
        with:
          version: "v0.0.261"

  python-test:
    needs: [code-quality]
    name: Tests
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
        py: [ '3.9', '3.14' ] # minimal and latest
    steps:
      - name: Install Python ${{ matrix.py }}
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.py }}

      - name: Checkout
        uses: actions/checkout@v3

      - name: Install CleverCSV
        run: pip install -e .[full,tests]

      - name: Run unit tests
        run: python -m unittest discover -v -f -s ./tests/test_unit