FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/.github/workflows/nuget-preview.yml at noncopyableanalyzer · pythonnet/pythonnet · GitHub
pythonnet
pythonnet
Repository navigation
Code
Issues
147
(147)
Pull requests
11
(11)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
.github
/
workflows
/
nuget-preview.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
63 lines (49 loc) · 1.69 KB
Breadcrumbs
pythonnet
/
.github
/
workflows
/
nuget-preview.yml
Copy path
File metadata and controls
63 lines (49 loc) · 1.69 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name
:
NuGet Preview Release
on
:
schedule
:
-
cron
:
"
5 4 3 */1 *
"
#
once a month, at 4:05 on 3rd
workflow_dispatch
:
jobs
:
release
:
name
:
Release Preview
runs-on
:
ubuntu-latest
environment
:
NuGet
timeout-minutes
:
10
env
:
PYTHONNET_SHUTDOWN_MODE
:
Normal
steps
:
-
name
:
Get Date
run
:
|
echo "DATE_VER=$(date "+%Y-%m-%d")" >> $GITHUB_ENV
-
name
:
Checkout code
uses
:
actions/checkout@v2
-
name
:
Setup .NET
uses
:
actions/setup-dotnet@v1
with
:
dotnet-version
:
'
6.0.x
'
-
name
:
Set up Python 3.8
uses
:
actions/setup-python@v2
with
:
python-version
:
3.8
architecture
:
x64
-
name
:
Install dependencies
run
:
|
pip install --upgrade -r requirements.txt
pip install numpy # for tests
-
name
:
Build and Install
run
:
|
pip install -v .
-
name
:
Set Python DLL path (non Windows)
if
:
${{ matrix.os != 'windows' }}
run
:
|
echo PYTHONNET_PYDLL=$(python -m find_libpython) >> $GITHUB_ENV
-
name
:
Python Tests
run
:
pytest
-
name
:
Embedding tests
run
:
dotnet test --runtime any-ubuntu src/embed_tests/
-
name
:
Pack
run
:
dotnet pack --configuration Release --version-suffix preview${{env.DATE_VER}} --output "Release-Preview"
-
name
:
Publish NuGet
run
:
|
dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_MONTHLY }} Release-Preview/*.nupkg
dotnet nuget push --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_MONTHLY }} Release-Preview/*.snupkg
Back
|
FazBrowse Home
|
New Git URL