Debian Codegraph @

.github/workflows/ci-python3.yml

raw symbols SCIP
1 # This is a basic workflow to help you get started with Actions
2
3 name: CI python3
4
5 # Controls when the action will run. Triggers the workflow on push or pull request
6 # events but only for the master branch
7 on:
8 push:
9 branches: [ python3 ]
10 pull_request:
11 branches: [ python3 ]
12 workflow_dispatch:
13 schedule:
14 - cron: '37 15 * * 5'
15
16 # A workflow run is made up of one or more jobs that can run sequentially or in parallel
17 jobs:
18 # This workflow contains a single job called "build"
19 test:
20 # The type of runner that the job will run on
21 runs-on: ${{ matrix.os }}
22
23 strategy:
24 matrix:
25 os: [ ubuntu-24.04, ubuntu-22.04 ]
26 python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.15' ]
27 # Exclude unsupported OS/Python version combinations
28 exclude:
29 - os: ubuntu-24.04
30 python-version: '3.7'
31 - os: ubuntu-24.04
32 python-version: '3.8'
33
34 # Steps represent a sequence of tasks that will be executed as part of the job
35 steps:
36 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
37 - uses: actions/checkout@v4
38
39 - name: Set up Python
40 uses: actions/setup-python@v5
41 with:
42 python-version: ${{ matrix.python-version }}
43 allow-prereleases: true
44 check-latest: true
45
46 - name: Install test dependencies
47 run: |
48 sudo apt install coreutils cksfv
49 pip install pyroma
50 pip install check-manifest
51 pip install twine
52 pip install wheel
53 pip install flake8
54 pip install build
55 pip list
56
57 - name: Check syntax by compiling code
58 run: python -W error -bb -m compileall -f .
59
60 - name: Run unit tests
61 run: python -W error -bb test/test.py --unit --exit-early
62
63 - name: Run integration tests (internal)
64 run: |
65 ulimit -n
66 ulimit -n 4096
67 python -W error -bb test/test.py -i --exit-early
68
69 - name: Run integration tests (external process)
70 run: |
71 ulimit -n
72 ulimit -n 4096
73 test/test.py -e --exit-early
74
75 - name: Check package quality
76 continue-on-error: ${{ contains(fromJson('["3.7", "3.8"]'), matrix.python-version) }}
77 run: pyroma -n 10 .
78
79 - name: Check the completeness of MANIFEST.in
80 run: check-manifest .
81
82 - name: Run flake
83 run: flake8 --exclude=build,venv --ignore= --max-line-length=200 --max-complexity=75 --show-source --statistics .
84
85 - name: Check distribution
86 run: |
87 python -m build
88 twine check dist/*