From cb8a8c269ea7eb3622684ff09e2aecfea54df1a5 Mon Sep 17 00:00:00 2001 From: Sam Ken Date: Fri, 21 Jul 2023 02:20:30 +0800 Subject: [PATCH] Create Setup .NET Core SDK #SAMkenXEcosystem PMUXSystemAPIs updates with DAVID/MORAL Project - > https://turnkey-triumph-326606-cloudstorage.googleapis.com/dev/samkenx main email : orbit.hierarchy@gmail.com Signed-off-by: Sam Ken --- .../Setup .NET Core SDK | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/python-package-conda.yml/Setup .NET Core SDK diff --git a/.github/workflows/python-package-conda.yml/Setup .NET Core SDK b/.github/workflows/python-package-conda.yml/Setup .NET Core SDK new file mode 100644 index 0000000000..09affe64c9 --- /dev/null +++ b/.github/workflows/python-package-conda.yml/Setup .NET Core SDK @@ -0,0 +1,71 @@ +name: Python Package using Conda + +on: [push] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: '3.10' + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + conda env update --file environment.yml --name base + - name: Lint with flake8 + run: | + conda install flake8 + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + - name: Test with pytest + run: | + conda install pytest + pytest + - name: Setup .NET Core SDK + + uses: actions/setup-dotnet@v3.2.0 + + with: + + # Optional SDK version(s) to use. If not provided, will install global.json version when available. Examples: 2.2.104, 3.1, 3.1.x, 3.x, 6.0.2xx + + dotnet-version: # optional + + # Optional quality of the build. The possible values are: daily, signed, validated, preview, ga. + + dotnet-quality: # optional + + # Optional global.json location, if your global.json isn't located in the root of the repo. + + global-json-file: # optional + + # Optional package source for which to set up authentication. Will consult any existing NuGet.config in the root of the repo and provide a temporary NuGet.config using the NUGET_AUTH_TOKEN environment variable as a ClearTextPassword + + source-url: # optional + + # Optional OWNER for using packages from GitHub Package Registry organizations/users other than the current repository's owner. Only used if a GPR URL is also provided in source-url + + owner: # optional + + # Optional NuGet.config location, if your NuGet.config isn't located in the root of the repo. + + config-file: # optional + + # Optional input to enable caching of the NuGet global-packages folder + + cache: # optional + + # Used to specify the path to a dependency file: packages.lock.json. Supports wildcards or a list of file names for caching multiple dependencies. + + cache-dependency-path: # optional