Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added github actions workflow to replace travis#1307

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

Merged
filmor merged 2 commits intopythonnet:masterfromlosttech:travis-github
Dec 9, 2020
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 60 additions & 27 deletions.github/workflows/main.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,69 @@
# This is a basic workflow to help you get started with Actions

name:GitHub Actions

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches:[ master ]
pull_request:
branches:[ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
on:[ pull_request, push ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on:ubuntu-latest
build-test:
name:Build and Test
runs-on:ubuntu-16.04

strategy:
matrix:
python:[3.6,3.7,3.8,3.9]
shutdown_mode:[Normal,Soft]
toolset:[Mono,.NET]
include:
-toolset:.NET
BUILD_OPTS:--xplat
RUN_TESTS:dotnet
EMBED_TESTS_PATH:netcoreapp3.1_publish/
PERF_TESTS_PATH:net461/
-toolset:Mono
BUILD_OPTS:""
RUN_TESTS:"mono ./packages/NUnit.*/tools/nunit3-console.exe"
EMBED_TESTS_PATH:""
PERF_TESTS_PATH:""

env:
BUILD_OPTS:${{ matrix.BUILD_OPTS }}
RUN_TESTS:${{ matrix.RUN_TESTS }}
EMBED_TESTS_PATH:${{ matrix.EMBED_TESTS_PATH }}
PERF_TESTS_PATH:${{ matrix.PERF_TESTS_PATH }}
PYTHONNET_SHUTDOWN_MODE:${{ matrix.SHUTDOWN_MODE }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-uses:actions/checkout@v2
-name:Checkout code
uses:actions/checkout@v2

-name:Install Mono
if:${{ matrix.toolset == 'Mono' }}
run:|
sudo apt update
sudo apt install mono-devel ca-certificates-mono -y
# Runs a single command using the runners shell
-name:Run a one-line script
run:echo Hello, world!
-name:Install .NET
if:${{ matrix.toolset == '.NET' }}
uses:actions/setup-dotnet@v1
with:
dotnet-version:3.1.x

# Runs a set of commands using the runners shell
-name:Run a multi-line script
-name:Set up Python ${{ matrix.python }}
uses:actions/setup-python@v2
with:
python-version:${{ matrix.python }}

-name:Install dependencies
run:|
pip install --upgrade setuptools # TEMP - due to setuptools 36.2.0 bug
pip install --upgrade -r requirements.txt
-name:Install
run:|
echo Add other actions to build,
echo test, and deploy your project.
echo $BUILD_OPTS
python setup.py install $BUILD_OPTS
-name:Python Tests
run:pytest

-name:.NET Tests
run:$RUN_TESTS src/embed_tests/bin/$EMBED_TESTS_PATH/Python.EmbeddingTest.dll --labels=All
59 changes: 0 additions & 59 deletions.travis.yml
View file
Open in desktop

This file was deleted.

2 changes: 1 addition & 1 deletionpythonnet.15.sln
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,10 +24,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Repo", "Repo", "{441A0123-F
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") ="CI","CI","{D301657F-5EAF-4534-B280-B858D651B2E5}"
ProjectSection(SolutionItems) =preProject
.travis.yml= .travis.yml
appveyor.yml=appveyor.yml
ci\appveyor_build_recipe.ps1=ci\appveyor_build_recipe.ps1
ci\appveyor_run_tests.ps1=ci\appveyor_run_tests.ps1
.github\workflows\main.yml= .github\workflows\main.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") ="Solution Items","Solution Items","{57F5D701-F265-4736-A5A2-07249E7A4DA3}"
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp