Skip to content

build(deps): bump leancloud from 2.9.11 to 2.9.12 #1853

build(deps): bump leancloud from 2.9.11 to 2.9.12

build(deps): bump leancloud from 2.9.11 to 2.9.12 #1853

Workflow file for this run

name: Lint And Test
on:
workflow_dispatch:
push:
release:
types: [ published ]
pull_request:
types: [ opened, synchronize ]
jobs:
lint:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
- name: Install Requirements
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements_dev.txt
- name: Set time zone
run: tzutil /s "China Standard Time"
- name: lint
run: |
tox -e lint
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, ubuntu-20.04 ]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
- name: Install Requirements Windows
if: startsWith(matrix.os, 'windows')
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements_dev.txt
- name: Install Requirements Ubuntu
if: startsWith(matrix.os, 'ubuntu')
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements_linux_dev.txt
- name: Set time zone
uses: szenius/[email protected]
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
- name: Test for CodeCov
run: |
pytest -n auto --cov=./ --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
verbose: true
- name: Upload Codecov artifact
uses: actions/upload-artifact@v3
with:
name: "coverage.xml"
path: ./coverage.xml
- name: Test for Coveralls
run: |
coverage run -m pytest .
- name: Upload coverage to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github