File: build.yml

package info (click to toggle)
python-fingerprints 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 920 kB
  • sloc: python: 1,290; makefile: 17
file content (43 lines) | stat: -rw-r--r-- 1,152 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
name: package
on: [push]
permissions:
  id-token: write

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python:
          - "3.11"
          - "3.12"
    steps:
      - uses: actions/checkout@v4
      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python }}
      - name: Install dependencies
        run: |
          sudo apt-get install -y libicu-dev
          python -m pip install --upgrade pip wheel pyicu
          pip install -e ".[dev]"
      - name: Generate data file
        run: |
          make generate
      - name: Type checking
        run: |
          make typecheck
      - name: Test with pytest
        run: |
          make test
      - name: Build a distribution
        if: matrix.python == '3.12'
        run: |
          python3 -m build --wheel
      - name: Publish a Python distribution to PyPI
        if: matrix.python == '3.12' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          skip-existing: true
          verbose: true