CI Tests - Quick #313
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: CI Tests - Quick | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
black-format: | |
name: Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: psf/black@stable | |
with: | |
options: "--check --diff" | |
src: "./src ./tests" | |
version: "~=22.0" | |
flake8-lint: | |
name: Lint Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: flake8 Lint | |
uses: py-actions/flake8@v2 | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: ["3.11"] | |
steps: | |
- name: Checkout Zipline | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install TA-Lib Linux | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo ./tools/install_talib.sh | |
- name: Install TA-Lib macOS | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
brew install ta-lib | |
- name: Developer Command Prompt for Microsoft Visual C++ | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Install TA-Lib Windows | |
if: ${{ matrix.os == 'windows-latest' }} | |
run: | | |
./tools/install_talib.bat | |
- name: Install Zipline | |
run: | | |
python -VV | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install tox tox-gh-actions | |
python -m pip install .[test] | |
- name: Unittests with tox & pytest | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 90 | |
max_attempts: 3 | |
retry_on: error | |
new_command_on_retry: python -m pip install tox tox-gh-actions .[test] | |
command: tox -e py311-pandas2 | |
- name: Upload coverage data to Codecov | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: false | |
name: codecov-umbrella | |
verbose: true |