Skip to content

Commit

Permalink
Release 1.170.0
Browse files Browse the repository at this point in the history
See release notes.
  • Loading branch information
cjdsellers authored Mar 11, 2023
2 parents 12801be + 6ec447c commit c44b7cb
Show file tree
Hide file tree
Showing 468 changed files with 10,213 additions and 8,502 deletions.
60 changes: 27 additions & 33 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,20 @@ jobs:
uses: actions/checkout@v3

# Rust setup (ensures latest stable)
- name: Set up Rust environment
uses: actions-rs/toolchain@v1
- name: Set up Rust tool-chain (Liux/Windows)
if: runner.os != 'macOS'
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

# Cargo setup
- name: Set up Cargo cache
uses: actions/cache@v3
- name: Set up Rust tool-chain (macOS)
if: runner.os == 'macOS'
uses: actions-rs/toolchain@v1
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/nautilus_core/Cargo.lock') }}
toolchain: stable
override: true
components: rustfmt, clippy

# Python setup
- name: Set up Python environment
Expand All @@ -51,7 +49,7 @@ jobs:

# Install build dependencies
- name: Install build dependencies
run: python -m pip install --upgrade pip setuptools wheel poetry pre-commit
run: python -m pip install --upgrade pip setuptools wheel pre-commit poetry==1.3.2

# Setup cached pre-commit
- name: Setup cached pre-commit
Expand All @@ -61,22 +59,30 @@ jobs:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-${{ matrix.python-version }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}

# Run pre-commit
- name: Run pre-commit
run: pre-commit run --all-files

# Setup Poetry caching
- name: Get Poetry cache dir
id: cached-poetry-dir
run: echo "::set-output name=dir::$(poetry config cache-dir)"
- name: Set output (Linux)
if: runner.os == 'Linux'
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_ENV

- name: Set output (macOS)
if: runner.os == 'macOS'
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_ENV

- name: Set output (Windows)
if: runner.os == 'Windows'
run: echo "dir=$(poetry config cache-dir)" | Out-File -FilePath $env:GITHUB_ENV -Append >> $GITHUB_ENV

- name: Poetry cache
id: cached-poetry
uses: actions/cache@v3
with:
path: ${{ steps.cached-poetry-dir.outputs.dir }}
path: ${{ env.dir }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}

# Run pre-commit
- name: Run pre-commit
run: pre-commit run --all-files

# Install and run database dependencies
- name: Install Redis (macOS)
if: runner.os == 'macOS'
Expand All @@ -90,18 +96,6 @@ jobs:
sudo apt-get install redis-server
redis-server --daemonize yes
- name: Install Memurai (Windows)
if: runner.os == 'Windows'
run: |
choco install memurai-developer.install
# Run nautilus_core checks (Linux & macOS)
- name: Run nautilus_core cargo checks
if: runner.os != 'Windows'
run: |
(cd nautilus_core && cargo fmt --all -- --check)
(cd nautilus_core && cargo clippy -- -D warnings)
# Run nautilus_core tests (Linux & macOS)
- name: Run nautilus_core cargo tests
if: runner.os != 'Windows'
Expand All @@ -126,6 +120,6 @@ jobs:
if: runner.os == 'Windows'
run: |
poetry install --with test --all-extras
poetry run pytest --ignore=tests/performance_tests --new-first --failed-first
poetry run pytest --ignore=tests/performance_tests -k "not no_ci" --new-first --failed-first
env:
PARALLEL_BUILD: false
33 changes: 15 additions & 18 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,12 @@ jobs:
uses: actions/checkout@v3

# Rust setup (ensures latest stable)
- name: Set up Rust environment
uses: actions-rs/toolchain@v1
- name: Set up Rust tool-chain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

# Cargo setup
- name: Set up Cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/nautilus_core/Cargo.lock') }}

# Python setup
- name: Set up Python environment
uses: actions/setup-python@v4
Expand All @@ -47,7 +36,7 @@ jobs:

# Install build dependencies
- name: Install build dependencies
run: python -m pip install --upgrade pip setuptools wheel poetry pre-commit
run: python -m pip install --upgrade pip setuptools wheel pre-commit poetry==1.3.2

# Setup cached pre-commit
- name: Setup cached pre-commit
Expand All @@ -62,15 +51,23 @@ jobs:
run: pre-commit run --all-files

# Setup Poetry caching
- name: Get Poetry cache dir
id: cached-poetry-dir
run: echo "::set-output name=dir::$(poetry config cache-dir)"
- name: Set output (Linux)
if: runner.os == 'Linux'
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_ENV

- name: Set output (macOS)
if: runner.os == 'macOS'
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_ENV

- name: Set output (Windows)
if: runner.os == 'Windows'
run: echo "dir=$(poetry config cache-dir)" | Out-File -FilePath $env:GITHUB_ENV -Append >> $GITHUB_ENV

- name: Poetry cache
id: cached-poetry
uses: actions/cache@v3
with:
path: ${{ steps.cached-poetry-dir.outputs.dir }}
path: ${{ env.dir }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}

# Install and run database dependencies
Expand Down
17 changes: 3 additions & 14 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,12 @@ jobs:
uses: actions/checkout@v3

# Rust setup (ensures latest stable)
- name: Set up Rust environment
uses: actions-rs/toolchain@v1
- name: Set up Rust tool-chain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

# Cargo setup
- name: Set up Cargo cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/nautilus_core/Cargo.lock') }}

# Python setup
- name: Set up Python environment
uses: actions/setup-python@v4
Expand All @@ -39,7 +28,7 @@ jobs:

# Install build dependencies
- name: Install build dependencies
run: python -m pip install --upgrade pip setuptools poetry
run: python -m pip install --upgrade pip setuptools poetry==1.3.2

# Build project
- name: Build project
Expand Down
Loading

0 comments on commit c44b7cb

Please sign in to comment.