- Notifications
You must be signed in to change notification settings - Fork750
Monthly NuGet release previews#1380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -38,6 +38,9 @@ indent_style = tab | ||
charset = utf-8 | ||
insert_final_newline = true | ||
[Python.Runtime.csproj] | ||
charset = latin1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. This is an odd choice for XML, is this intentional? MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Without this Visual Studio tends to add UTF-8 BOM header to solution, leading to PRs with the entire file replaced. It simply ignores | ||
# bumpversion reformats itself after every bump | ||
[.bumpversion.cfg] | ||
trim_trailing_whitespace = false | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: GitHub Actions | ||
on: [ pull_request ] # testing only | ||
#on: | ||
# schedule: | ||
# - cron: "5 4 3 */1 *" # once a month, at 4:05 on 3rd | ||
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: | | ||
python setup.py configure | ||
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: Python tests run from .NET | ||
run: dotnet test --runtime any-ubuntu src/python_tests_runner/ | ||
if: ${{ matrix.os == 'windows' }} # Not working for others right now | ||
env: | ||
PYTHONNET_PYDLL: libpython3.8.so | ||
- name: Pack | ||
run: dotnet pack --configuration Release --version-suffix preview${{env.DATE_VER}} | ||
- name: Publish NuGet | ||
run: dotnet nuget push --api-key ${{ secrets.NUGET_MONTHLY }} | ||
# TODO: Run perf tests | ||
# TODO: Run mono tests on Windows? |