Skip to content
play

GitHub Action

Portfolio Backtest Action

v0.1.0-alpha.2 Pre-release

Portfolio Backtest Action

play

Portfolio Backtest Action

Backtest simple portfolio specifications

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Portfolio Backtest Action

uses: portfoliotree/backtest-action@v0.1.0-alpha.2

Learn more about this action in portfoliotree/backtest-action

Choose a version

Portfolio Backtest Action

See the portfoliotree/factors workflow for an example of using this action.

Example usage

name: Back Test

on:
  push:
    branches: [ "main" ]
    paths-ignore:
      - 'README.md'

jobs:
  back_test:
    name: Run BackTest
    steps:
      - uses: actions/checkout@v3
      - uses: portfoliotree/backtest-action
      - name: Save Artifacts
        uses: actions/upload-artifact@v3
        with:
          name: backtest_results
          path: |
            backtest_results.json
            returns.csv
          retention-days: 2