Bump python from 3.12.8-slim-bookworm to 3.13.1-slim-bookworm #64
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
# This workflow will check pull request and run tests | |
name: Pull Request Check | |
on: | |
pull_request: | |
branches: | |
- main | |
permissions: | |
checks: write | |
pull-requests: write | |
jobs: | |
build: | |
name: 🛂 Pull Request Check | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository ⚙️ | |
uses: actions/checkout@v4 | |
- name: Setup Python ⚙️ | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' # caching pip dependencies | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install dependencies ⚙️ | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Build and test 🏗️ | |
run: | | |
pip install httpx pytest pytest-cov coverage | |
pytest -v --doctest-modules --junitxml=junit/test-results.xml --cov=trading_calendar --cov-report=xml --cov-report=html | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: | | |
junit/test-results.xml | |
- name: Upload coverage reports | |
uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |