Skip to content

Bump github/codeql-action from 4.35.1 to 4.35.2 #465

Bump github/codeql-action from 4.35.1 to 4.35.2

Bump github/codeql-action from 4.35.1 to 4.35.2 #465

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Test Build
permissions: read-all # Declare default permissions as read only.
on:
push:
branches: ["main"]
paths: ["lib/**", "tests/**"]
pull_request:
branches: ["main"]
paths: ["lib/**", "tests/**", ".github/workflows/*.yml"]
workflow_dispatch: {}
jobs:
build:
runs-on: ["ubuntu-latest"]
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- name: Add test locales
# This is required for testing locale-specific date/time inputs
run: |
sudo apt-get update
sudo apt install locales -y
sudo locale-gen en_US.UTF-8 fr_FR.UTF-8 ko_KR.UTF-8
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install ruff pytest pytest-cov
pip install -e .[wcwidth]
- name: Lint with ruff
run: ruff check
- name: Generate coverage report
run: pytest --cov-branch --cov=./lib/ --cov-report=xml
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: true
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
verbose: true