fix(FIR-42325): Default httpx logging level to Warn #98
Workflow file for this run
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: Pull request checks | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
check-title: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check title name convention | |
uses: jef/conventional-commits-pr-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
check-code: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ".[dev]" | |
- name: Run pre-commit checks | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: --all-files | |
- name: Run unit tests | |
run: | | |
pytest --cov=firebolt_provider/ tests/ --cov-report=xml | |
- name: Upload coverage report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pytest-coverage-report | |
path: coverage.xml | |
- name: Extract coverage percent | |
id: coverage | |
continue-on-error: true | |
run: | | |
fraction=$(sed -n 2p coverage.xml | sed 's/.*line-rate=\"\([0-9.]*\)\".*$/\1/') | |
percentage=$(echo "scale=1; $fraction * 100" | bc -l) | |
percentage_whole=$(echo "${percentage%.*}") | |
colour=$(if [ $percentage_whole -ge 80 ]; then echo "green"; else echo "orange"; fi) | |
echo "colour=$colour" >> $GITHUB_OUTPUT | |
echo "covered=$percentage_whole" >> $GITHUB_OUTPUT | |
- name: Create Coverage Badge | |
uses: schneegans/[email protected] | |
continue-on-error: true | |
with: | |
auth: ${{ secrets.GIST_PAT }} | |
gistID: 22e274394fed6421b6f5d5a2c8016fa3 | |
filename: firebolt-airflow-provider-coverage.json | |
label: Coverage | |
message: ${{steps.coverage.outputs.covered}}% | |
color: ${{steps.coverage.outputs.colour}} |