From 873459db13e9939c6ba0c1f3dc6ddc75a631a3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B8=9B=E0=B8=9E=E0=B8=99=E0=B8=9E=E0=B8=B1=E0=B8=8A?= =?UTF-8?q?=E0=B8=A3=E0=B9=8C=20=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=9E?= =?UTF-8?q?=E0=B8=88=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=A3=E0=B9=8C?= <54611912+APA2527@users.noreply.github.com> Date: Thu, 25 Mar 2021 16:06:07 +0700 Subject: [PATCH 1/3] Create python-package-conda.yml --- .github/workflows/python-package-conda.yml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/python-package-conda.yml diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml new file mode 100644 index 0000000..7bae7e2 --- /dev/null +++ b/.github/workflows/python-package-conda.yml @@ -0,0 +1,34 @@ +name: Python Package using Conda + +on: [push] + +jobs: + build-linux: + runs-on: ubuntu-latest + strategy: + max-parallel: 5 + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - 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 From fb86aafc8c272e42360704d31b526cfb192df57d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B8=9B=E0=B8=9E=E0=B8=99=E0=B8=9E=E0=B8=B1=E0=B8=8A?= =?UTF-8?q?=E0=B8=A3=E0=B9=8C=20=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=9E?= =?UTF-8?q?=E0=B8=88=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=A3=E0=B9=8C?= <54611912+APA2527@users.noreply.github.com> Date: Thu, 25 Mar 2021 16:09:20 +0700 Subject: [PATCH 2/3] Create node.js.yml --- .github/workflows/node.js.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..05a9a9c --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,30 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: Node.js CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x, 15.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test From c172327a3d395a25d98fef17e195253460cf24e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=B8=9B=E0=B8=9E=E0=B8=99=E0=B8=9E=E0=B8=B1=E0=B8=8A?= =?UTF-8?q?=E0=B8=A3=E0=B9=8C=20=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=9E?= =?UTF-8?q?=E0=B8=88=E0=B8=B1=E0=B8=99=E0=B8=97=E0=B8=A3=E0=B9=8C?= <54611912+APA2527@users.noreply.github.com> Date: Thu, 25 Mar 2021 16:12:21 +0700 Subject: [PATCH 3/3] Create main.yml --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6a2b91b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# 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: + +# 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 + + # 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 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project.