Skip to content

Commit

Permalink
Merge pull request #1460 from bug-or-feature/feature-1421-better-build
Browse files Browse the repository at this point in the history
Better build (part 1)
  • Loading branch information
bug-or-feature authored Nov 11, 2024
2 parents bf1d5a0 + ac00d71 commit 02adec3
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 42 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/os-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: OS test

on:
workflow_dispatch:
push:

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, macos-13, macos-14, windows-2022 ]
python-version: [ 3.11.9 ]

steps:

- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
37 changes: 0 additions & 37 deletions .github/workflows/slow-test-master.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Slow test (develop)
name: Slow test

on:
schedule:
Expand All @@ -17,8 +17,6 @@ jobs:
steps:

- uses: actions/checkout@v4
with:
ref: "develop"

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ numpy>=1.24.0
scipy>=1.0.0
pymongo==3.11.3
ib-insync==0.9.86
psutil==5.6.6
psutil==5.6.7
pytest>6.2
Flask>=2.0.1
Werkzeug>=2.0.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def dir_this_file():
"numpy>=1.24.0",
"scipy>=1.0.0",
"pymongo==3.11.3",
"psutil==5.6.6",
"psutil==5.6.7",
"pytest>6.2",
"Flask>=2.0.1",
"Werkzeug>=2.0.1",
Expand Down
4 changes: 4 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ def test_simple_system_portfolio_estimated(
print(my_system.portfolio.get_instrument_weights().tail(5))
print(my_system.portfolio.get_instrument_diversification_multiplier().tail(5))

@pytest.mark.slow # will be skipped unless run with 'pytest --runslow'
def test_simple_system_portfolio_fixed(
self, data, raw_data, my_rules, my_config, fcs, combiner, possizer, portfolio
):
Expand All @@ -253,6 +254,7 @@ def test_simple_system_portfolio_fixed(

print(my_system.portfolio.get_notional_position("SOFR").tail(5))

@pytest.mark.slow # will be skipped unless run with 'pytest --runslow'
def test_simple_system_costs(
self,
data,
Expand Down Expand Up @@ -280,6 +282,7 @@ def test_simple_system_costs(
print(profits.gross.percent.stats())
print(profits.net.percent.stats())

@pytest.mark.slow # will be skipped unless run with 'pytest --runslow'
def test_simple_system_config_object(self, data, ewmac_8, ewmac_32):
my_config = Config(
dict(
Expand Down Expand Up @@ -357,6 +360,7 @@ def test_simple_system_risk_overlay(self, data, ewmac_8, ewmac_32):
)
print(my_system.portfolio.get_notional_position("SOFR").tail(5))

@pytest.mark.slow # will be skipped unless run with 'pytest --runslow'
def test_simple_system_config_import(self, data):
my_config = Config("systems.provided.example.simplesystemconfig.yaml")
my_config.exclude_instrument_lists = dict(
Expand Down

0 comments on commit 02adec3

Please sign in to comment.