linux怎么查看本机内存大小
275
2022-10-11
GITHUB ACTION - 推送AWS Lambda 文件
继续学习Github Action, 下面的例子里面我尝试上传一个lambda_function.py的python文件, 自动检测语法无误之后,给我更新到指定的AWS Lambda Function上面去。
name: deploy-py-lambda on: push: branches: - master jobs: build: runs-on: ubuntu-latest strategy: matrix: python-version: [3.8] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip pip install flake8 pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 run: | # 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: Zip dist folder contents run: pwd && ls && zip bundle.zip lambda_function.py - name: Deploy code to Lambda uses: vetpartner/lambdatest@master with: function_name: 'Mytestfunction' aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws_region: 'ap-southeast-2' zip_file: bundle.zip
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~