FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/.github/workflows/nuget-preview.yml at master · NULL0B/pythonnet · GitHub
NULL0B
pythonnet
Repository navigation
Code
Pull requests
Actions
Projects
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
60 lines (46 loc) · 1.44 KB
Breadcrumbs
pythonnet
/
.github
/
workflows
/
nuget-preview.yml
Copy path
File metadata and controls
60 lines (46 loc) · 1.44 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
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
-
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
-
name
:
Build and Install
run
:
|
pip install -v .
-
name
:
Python Tests
run
:
pytest
env
:
PYTHONNET_PYDLL
:
libpython3.8.so
-
name
:
Embedding tests
run
:
dotnet test --runtime any-ubuntu src/embed_tests/
env
:
PYTHONNET_PYDLL
:
libpython3.8.so
-
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
#
TODO: Run perf tests
#
TODO: Run mono tests on Windows?
Back
|
FazBrowse Home
|
New Git URL