|
34 | 34 | os: [ubuntu-latest, macos-latest, windows-latest] |
35 | 35 |
|
36 | 36 | steps: |
37 | | -<<<<<<< before updating |
38 | | - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
39 | | - with: |
40 | | - persist-credentials: false |
41 | | - |
42 | | - - uses: actions-ext/python/setup@main |
43 | | - with: |
44 | | - version: ${{ matrix.python-version }} |
45 | | - |
46 | | - - uses: actions-ext/rust/setup@main |
47 | | - |
48 | | - - name: Install dependencies |
49 | | - run: make develop |
50 | | - |
51 | | - - name: Lint |
52 | | - run: make lint |
53 | | - |
54 | | - - name: Checks |
55 | | - run: make checks |
56 | | - if: matrix.os == 'ubuntu-latest' |
57 | | - |
58 | | - - name: Build |
59 | | - run: make build |
60 | | - |
61 | | - - name: Test |
62 | | - run: make coverage |
63 | | - |
64 | | - - name: Upload test results (Python) |
65 | | - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
66 | | - with: |
67 | | - name: test-results-${{ matrix.os }}-${{ matrix.python-version }} |
68 | | - path: '**/junit.xml' |
69 | | - if: ${{ always() }} |
70 | | - |
71 | | - - name: Publish Unit Test Results |
72 | | - uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0 |
73 | | - with: |
74 | | - files: '**/junit.xml' |
75 | | - if: matrix.os == 'ubuntu-latest' |
76 | | - |
77 | | - - name: Upload coverage |
78 | | - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 |
79 | | - with: |
80 | | - token: ${{ secrets.CODECOV_TOKEN }} |
81 | | - |
82 | | - - name: Set up QEMU |
83 | | - uses: docker/setup-qemu-action@v4 |
84 | | - with: |
85 | | - platforms: all |
86 | | - if: runner.os == 'Linux' && runner.arch == 'X64' |
87 | | - |
88 | | - - name: Make dist (Linux) |
89 | | - run: | |
90 | | - rm -rf dist |
91 | | - make dist-rs |
92 | | - make dist-py-sdist |
93 | | - # cibuildwheel tars the entire working tree into the manylinux container. |
94 | | - # The earlier build/coverage/dist-rs steps leave a multi-GB rust/target |
95 | | - # cache that the wheel build recompiles from source anyway, so strip it |
96 | | - # to keep the container copy from stalling. |
97 | | - rm -rf rust/target |
98 | | - make dist-py-wheel |
99 | | - make dist-check |
100 | | - shell: bash |
101 | | - if: matrix.os == 'ubuntu-latest' |
102 | | - |
103 | | - - name: Make dist (Macos / Windows) |
104 | | - run: | |
105 | | - rm -rf dist |
106 | | - make dist-py-wheel |
107 | | - make dist-check |
108 | | - shell: bash |
109 | | - env: |
110 | | - CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=11.0 |
111 | | - if: matrix.os != 'ubuntu-latest' |
112 | | - |
113 | | - - uses: actions-ext/python/test-wheel@main |
114 | | - with: |
115 | | - module: nepenthe |
116 | | - if: matrix.os == 'ubuntu-latest' |
117 | | - |
118 | | - - uses: actions-ext/python/test-sdist@main |
119 | | - with: |
120 | | - module: nepenthe |
121 | | - if: matrix.os == 'ubuntu-latest' |
122 | | - |
123 | | - - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 |
124 | | - with: |
125 | | - name: dist-${{matrix.os}} |
126 | | - path: dist |
127 | | -======= |
128 | 37 | - name: Checkout |
129 | 38 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
130 | 39 | with: |
|
190 | 99 | rm -rf dist |
191 | 100 | make dist-rs |
192 | 101 | make dist-py-sdist |
| 102 | + rm -rf rust/target |
193 | 103 | make dist-py-wheel |
194 | 104 | make dist-check |
195 | 105 | shell: bash |
@@ -222,4 +132,3 @@ jobs: |
222 | 132 | with: |
223 | 133 | name: dist-${{ matrix.os }} |
224 | 134 | path: dist |
225 | | ->>>>>>> after updating |
0 commit comments