Skip to content

feature/2024 trading calendar update #102

feature/2024 trading calendar update

feature/2024 trading calendar update #102

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.7, 3.8, 3.9]
include:
- python-version: 3.7
requirements_file: requirements_locked.txt
- python-version: 3.8
requirements_file: requirements_locked.txt
- python-version: 3.9
requirements_file: requirements_locked.txt
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Set Lockfile
run: |
echo "PIP_CONSTRAINT=etc/${{matrix.requirements_file}}" >> $GITHUB_ENV
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/[email protected]
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-py${{matrix.python-version}}-${{ hashFiles(env.PIP_CONSTRAINT) }}
restore-keys: |
${{ runner.os }}-pip-py${{matrix.python-version}}-
- name: Install dependencies
env:
PYTHONWARNINGS: ignore:DEPRECATION::pip._internal.cli.base_command
run: |
pip install -e .[dev]
- name: Lint with flake8
run: |
flake8
- name: Test with pytest
run: |
pytest tests -n auto --dist loadscope