[SLS gateway]fix: solve the inconsistency of credentials refreshes #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: POP Python Test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
defaults: | |
run: | |
shell: bash | |
working-directory: alibabacloud-gateway-pop/python | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: pip install pytest==6.2.5 coverage==5.5 importlib-metadata==1.7.0 zipp==2.2.1 typing-extensions==3.10.0.2 && python setup.py install | |
if: matrix.python-version == '3.7' | |
- name: Install dependencies | |
run: python -m pip install setuptools && python setup.py install && pip install pytest coverage | |
if: matrix.python-version != '3.7' | |
- name: Test with unittest | |
run: | | |
coverage run --source="./alibabacloud_tea_util" -m pytest tests/test_* | |
- name: CodeCov | |
run: bash <(curl -s https://codecov.io/bash) -cF python |