Replace awscli-cwlogs with fluent-bit #355
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: Tests | |
on: [push, pull_request] | |
env: | |
LC_ALL: C.UTF-8 | |
LANG: C.UTF-8 | |
AWS_DEFAULT_REGION: us-west-1 | |
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | |
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 8 | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{matrix.python-version}} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Install | |
run: | | |
make install | |
echo 'import coverage; coverage.process_startup()' > sitecustomize.py | |
- name: Lint | |
if: ${{matrix.python-version == '3.12'}} | |
run: make lint | |
- name: Stagger tests to avoid throttling errors | |
run: python3 -c 'import sys, time, hashlib; time.sleep(int.from_bytes(hashlib.md5(sys.version.encode()).digest(), sys.byteorder) % 16)' | |
- name: Test | |
run: | | |
export COVERAGE_PROCESS_START=$(pwd)/.coveragerc | |
make test | |
- uses: codecov/codecov-action@v3 | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: isort/[email protected] |