|
32 | 32 | strategy: |
33 | 33 | matrix: |
34 | 34 | os: [ubuntu-latest, macos-latest, windows-latest] |
35 | | - python-version: ["3.11"] |
36 | 35 |
|
37 | 36 | steps: |
| 37 | +<<<<<<< before updating |
38 | 38 | - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
39 | 39 | with: |
40 | 40 | persist-credentials: false |
@@ -124,3 +124,102 @@ jobs: |
124 | 124 | with: |
125 | 125 | name: dist-${{matrix.os}} |
126 | 126 | path: dist |
| 127 | +======= |
| 128 | + - name: Checkout |
| 129 | + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 130 | + with: |
| 131 | + persist-credentials: false |
| 132 | + |
| 133 | + - name: Setup Python |
| 134 | + uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446 |
| 135 | + with: |
| 136 | + version: "3.11" |
| 137 | + |
| 138 | + - name: Setup Rust |
| 139 | + uses: actions-ext/rust/setup@2db8e3e4c56beb7320c7d730bd2c2d6a6447bf6b |
| 140 | + |
| 141 | + - name: Install dependencies |
| 142 | + run: make develop |
| 143 | + |
| 144 | + - name: Lint |
| 145 | + run: make lint |
| 146 | + |
| 147 | + - name: Checks |
| 148 | + run: make checks |
| 149 | + if: matrix.os == 'ubuntu-latest' |
| 150 | + |
| 151 | + - name: Build |
| 152 | + run: make build |
| 153 | + |
| 154 | + - name: Test |
| 155 | + run: make coverage |
| 156 | + |
| 157 | + - name: Upload test results (Python) |
| 158 | + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
| 159 | + with: |
| 160 | + name: test-results-${{ matrix.os }} |
| 161 | + path: '**/junit.xml' |
| 162 | + if: always() |
| 163 | + |
| 164 | + - name: Publish test results |
| 165 | + uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0 |
| 166 | + with: |
| 167 | + files: '**/junit.xml' |
| 168 | + if: matrix.os == 'ubuntu-latest' |
| 169 | + |
| 170 | + - name: Upload coverage |
| 171 | + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 |
| 172 | + with: |
| 173 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 174 | + |
| 175 | + - name: Set up QEMU |
| 176 | + uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0 |
| 177 | + with: |
| 178 | + platforms: all |
| 179 | + if: runner.os == 'Linux' && runner.arch == 'X64' |
| 180 | + |
| 181 | + - name: Free disk space |
| 182 | + run: | |
| 183 | + sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup /usr/share/swift |
| 184 | + df -h / |
| 185 | + shell: bash |
| 186 | + if: matrix.os == 'ubuntu-latest' |
| 187 | + |
| 188 | + - name: Build distributions (Linux) |
| 189 | + run: | |
| 190 | + rm -rf dist |
| 191 | + make dist-rs |
| 192 | + make dist-py-sdist |
| 193 | + make dist-py-wheel |
| 194 | + make dist-check |
| 195 | + shell: bash |
| 196 | + if: matrix.os == 'ubuntu-latest' |
| 197 | + |
| 198 | + - name: Build distributions (macOS/Windows) |
| 199 | + run: | |
| 200 | + rm -rf dist |
| 201 | + make dist-py-wheel |
| 202 | + make dist-check |
| 203 | + shell: bash |
| 204 | + env: |
| 205 | + CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0 |
| 206 | + if: matrix.os != 'ubuntu-latest' |
| 207 | + |
| 208 | + - name: Test wheel |
| 209 | + uses: actions-ext/python/test-wheel@6e1b91a408ea89f49bc8aff8724f83826f7b5446 |
| 210 | + with: |
| 211 | + module: nepenthe |
| 212 | + if: matrix.os == 'ubuntu-latest' |
| 213 | + |
| 214 | + - name: Test source distribution |
| 215 | + uses: actions-ext/python/test-sdist@6e1b91a408ea89f49bc8aff8724f83826f7b5446 |
| 216 | + with: |
| 217 | + module: nepenthe |
| 218 | + if: matrix.os == 'ubuntu-latest' |
| 219 | + |
| 220 | + - name: Upload distributions |
| 221 | + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
| 222 | + with: |
| 223 | + name: dist-${{ matrix.os }} |
| 224 | + path: dist |
| 225 | +>>>>>>> after updating |
0 commit comments