Bump actions/checkout from 6.0.2 to 6.0.3 #473
This file contains hidden or 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
| # 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@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - 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 |