Add CME/Globex calendar for grains #42
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: test_runner | |
on: | |
pull_request: | |
branches: [ dev ] | |
workflow_call: | |
workflow_dispatch: | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
python-version: [ '3.9', '3.10', '3.11', '3.12'] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest coveralls black===24.1.1 | |
pip install . | |
- name: ensure black format | |
run: python -m black --check pandas_market_calendars tests | |
- name: run tests | |
run: | | |
coverage run --source=pandas_market_calendars -m pytest tests | |
coverage lcov -o coverage.lcov | |
- name: coveralls parallel | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.github_token }} | |
flag-name: test_${{matrix.os}}_${{matrix.python-version}} | |
parallel: true | |
path-to-lcov: coverage.lcov | |
report_coverage: | |
if: ${{ always() }} | |
needs: run_tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: coveralls finalize | |
id: coveralls_finalize | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{secrets.github_token}} | |
parallel-finished: true | |
path-to-lcov: coverage.lcov | |