@@ -33,87 +33,100 @@ jobs:
3333 python-version : ["3.11"]
3434
3535 steps :
36- - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
37- with :
38- persist-credentials : false
39-
40- - uses : actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
41- with :
42- version : ${{ matrix.python-version }}
43-
44- - uses : actions-ext/rust/setup@c9cdbe5cc8a2485bf2eb22644302559c741ca763
45-
46- - name : Install dependencies
47- run : make develop
48-
49- - name : Lint
50- run : make lint
51-
52- - name : Checks
53- run : make checks
54- if : matrix.os == 'ubuntu-latest'
55-
56- - name : Build
57- run : make build
58-
59- - name : Test
60- run : make coverage
61-
62- - name : Upload test results (Python)
63- uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
64- with :
65- name : test-results-${{ matrix.os }}-${{ matrix.python-version }}
66- path : ' **/junit.xml'
67- if : ${{ always() }}
68-
69- - name : Publish Unit Test Results
70- uses : EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
71- with :
72- files : ' **/junit.xml'
73- if : matrix.os == 'ubuntu-latest'
74-
75- - name : Upload coverage
76- uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
77- with :
78- token : ${{ secrets.CODECOV_TOKEN }}
79-
80- - name : Set up QEMU
81- uses : docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
82- with :
83- platforms : all
84- if : runner.os == 'Linux' && runner.arch == 'X64'
85-
86- - name : Make dist (Linux)
87- run : |
88- rm -rf dist
89- make dist-rs
90- make dist-py-sdist
91- make dist-py-wheel
92- make dist-check
93- shell : bash
94- if : matrix.os == 'ubuntu-latest'
95-
96- - name : Make dist (Macos / Windows)
97- run : |
98- rm -rf dist
99- make dist-py-wheel
100- make dist-check
101- shell : bash
102- env :
103- CIBW_ENVIRONMENT_MACOS : MACOSX_DEPLOYMENT_TARGET=11.0
104- if : matrix.os != 'ubuntu-latest'
105-
106- - uses : actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
107- with :
108- module : python_template_rust
109- if : matrix.os == 'ubuntu-latest'
110-
111- - uses : actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
112- with :
113- module : python_template_rust
114- if : matrix.os == 'ubuntu-latest'
115-
116- - uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
117- with :
118- name : dist-${{matrix.os}}
119- path : dist
36+ - name : Checkout
37+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
38+ with :
39+ persist-credentials : false
40+
41+ - name : Setup Python
42+ uses : actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
43+ with :
44+ version : ${{ matrix.python-version }}
45+
46+ - name : Setup Rust
47+ uses : actions-ext/rust/setup@c9cdbe5cc8a2485bf2eb22644302559c741ca763
48+
49+ - name : Install dependencies
50+ run : make develop
51+
52+ - name : Lint
53+ run : make lint
54+
55+ - name : Checks
56+ run : make checks
57+ if : matrix.os == 'ubuntu-latest'
58+
59+ - name : Build
60+ run : make build
61+
62+ - name : Test
63+ run : make coverage
64+
65+ - name : Upload test results (Python)
66+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
67+ with :
68+ name : test-results-${{ matrix.os }}-${{ matrix.python-version }}
69+ path : ' **/junit.xml'
70+ if : ${{ always() }}
71+
72+ - name : Publish test results
73+ uses : EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0
74+ with :
75+ files : ' **/junit.xml'
76+ if : matrix.os == 'ubuntu-latest'
77+
78+ - name : Upload coverage
79+ uses : codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
80+ with :
81+ token : ${{ secrets.CODECOV_TOKEN }}
82+
83+ - name : Set up QEMU
84+ uses : docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
85+ with :
86+ platforms : all
87+ if : runner.os == 'Linux' && runner.arch == 'X64'
88+
89+ - name : Free disk space
90+ run : |
91+ sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup /usr/share/swift
92+ df -h /
93+ shell : bash
94+ if : matrix.os == 'ubuntu-latest'
95+
96+ - name : Build distributions (Linux)
97+ run : |
98+ rm -rf dist
99+ make dist-rs
100+ make dist-py-sdist
101+ make dist-py-wheel
102+ make dist-check
103+ shell : bash
104+ if : matrix.os == 'ubuntu-latest'
105+
106+ - name : Build distributions (macOS/Windows)
107+ run : |
108+ rm -rf dist
109+ make dist-py-wheel
110+ make dist-check
111+ shell : bash
112+ env :
113+ CIBW_ENVIRONMENT_MACOS : MACOSX_DEPLOYMENT_TARGET=11.0
114+ if : matrix.os != 'ubuntu-latest'
115+
116+ - name : Test wheel
117+ uses : actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446
118+ with :
119+ module : python_template_rust
120+ if : matrix.os == 'ubuntu-latest'
121+
122+ - name : Test source distribution
123+ uses : actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446
124+ with :
125+ module : python_template_rust
126+ if : matrix.os == 'ubuntu-latest'
127+
128+ - name : Upload distributions
129+ uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
130+ with :
131+ name : dist-${{matrix.os}}
132+ path : dist
0 commit comments