Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9fb7e65

Browse files
committed
bring NuGet preview CI job in line with main
1 parent 48c0ca6 commit 9fb7e65

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/nuget-preview.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,22 @@ jobs:
3737
- name: Install dependencies
3838
run: |
3939
pip install --upgrade -r requirements.txt
40+
pip install numpy # for tests
4041
4142
- name: Build and Install
4243
run: |
4344
pip install -v .
4445
46+
- name: Set Python DLL path (non Windows)
47+
if: ${{ matrix.os != 'windows' }}
48+
run: |
49+
python -m pythonnet.find_libpython --export >> $GITHUB_ENV
50+
4551
- name: Python Tests
4652
run: pytest
47-
env:
48-
PYTHONNET_PYDLL: libpython3.8.so
4953

5054
- name: Embedding tests
5155
run: dotnet test --runtime any-ubuntu src/embed_tests/
52-
env:
53-
PYTHONNET_PYDLL: libpython3.8.so
5456

5557
- name: Pack
5658
run: dotnet pack --configuration Release --version-suffix preview${{env.DATE_VER}} --output "Release-Preview"
@@ -59,6 +61,3 @@ jobs:
5961
run: |
6062
dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_MONTHLY }} Release-Preview/*.nupkg
6163
dotnet nuget push --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_MONTHLY }} Release-Preview/*.snupkg
62-
63-
# TODO: Run perf tests
64-
# TODO: Run mono tests on Windows?

0 commit comments

Comments
 (0)