Skip to content

Commit 8975069

Browse files
committed
Merge branch 'develop' into redis
2 parents 06373a6 + e83a4c7 commit 8975069

File tree

105 files changed

+1352
-922
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1352
-922
lines changed

.docker/nautilus_trader.dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.12-slim AS base
1+
FROM python:3.13-slim AS base
22
ENV PYTHONUNBUFFERED=1 \
33
PYTHONDONTWRITEBYTECODE=1 \
44
PIP_NO_CACHE_DIR=off \
@@ -27,7 +27,7 @@ RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
2727
COPY uv-version ./
2828
RUN UV_VERSION=$(cat uv-version) && curl -LsSf https://astral.sh/uv/$UV_VERSION/install.sh | sh
2929

30-
# Install package requirements (split step and with --no-root to enable caching)
30+
# Install package requirements
3131
COPY uv.lock pyproject.toml build.py ./
3232
RUN uv sync --no-install-package nautilus_trader
3333

@@ -40,10 +40,10 @@ RUN cargo build --release --all-features
4040
COPY nautilus_trader ./nautilus_trader
4141
COPY README.md ./
4242
RUN uv build --wheel
43-
RUN uv pip install dist/*.whl
44-
RUN find /usr/local/lib/python3.12/site-packages -name "*.pyc" -exec rm -f {} \;
43+
RUN uv pip install --system dist/*.whl
44+
RUN find /usr/local/lib/python3.13/site-packages -name "*.pyc" -exec rm -f {} \;
4545

4646
# Final application image
4747
FROM base AS application
4848

49-
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
49+
COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages

.github/actions/common-setup/action.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
# > OS
1818
- name: Free disk space (Ubuntu)
1919
if: inputs.free-disk-space == 'true' && runner.os == 'Linux'
20-
# https://github.com/jlumbroso/free-disk-space/releases/tag/v1.3.1
20+
# https://github.com/jlumbroso/free-disk-space
2121
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
2222
with:
2323
tool-cache: true
@@ -106,7 +106,7 @@ runs:
106106
107107
- name: Cached sccache
108108
id: cached-sccache
109-
# https://github.com/actions/cache/releases/tag/v4.2.3
109+
# https://github.com/actions/cache
110110
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
111111
with:
112112
path: ${{ env.SCCACHE_DIR }}
@@ -117,13 +117,13 @@ runs:
117117
sccache-${{ runner.os }}-
118118
119119
- name: Run sccache
120-
# https://github.com/Mozilla-Actions/sccache-action/releases/tag/v0.0.8
120+
# https://github.com/Mozilla-Actions/sccache-action
121121
uses: mozilla-actions/sccache-action@65101d47ea8028ed0c98a1cdea8dd9182e9b5133 # v0.0.8
122122

123123
# > --------------------------------------------------
124124
# > Python
125125
- name: Set up Python environment
126-
# https://github.com/actions/setup-python/releases/tag/v5.4.0
126+
# https://github.com/actions/setup-python
127127
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
128128
with:
129129
python-version: ${{ inputs.python-version }}
@@ -135,7 +135,7 @@ runs:
135135
136136
- name: Cache Python site-packages
137137
id: cached-site-packages
138-
# https://github.com/actions/cache/releases/tag/v4.2.3
138+
# https://github.com/actions/cache
139139
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
140140
with:
141141
path: ~/.local/lib/python${{ inputs.python-version }}/site-packages
@@ -155,7 +155,8 @@ runs:
155155
echo "UV_VERSION=$(cat uv-version)" >> $GITHUB_ENV
156156
157157
- name: Install uv
158-
uses: astral-sh/setup-uv@v5
158+
# https://github.com/astral-sh/setup-uv
159+
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # 5.4.1
159160
with:
160161
version: ${{ env.UV_VERSION }}
161162

@@ -166,7 +167,7 @@ runs:
166167
167168
- name: Cached uv
168169
id: cached-uv
169-
# https://github.com/actions/cache/releases/tag/v4.2.3
170+
# https://github.com/actions/cache
170171
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
171172
with:
172173
path: ${{ env.UV_CACHE_DIR }}
@@ -176,7 +177,7 @@ runs:
176177
# > pre-commit
177178
- name: Cached pre-commit
178179
id: cached-pre-commit
179-
# https://github.com/actions/cache/releases/tag/v4.2.3
180+
# https://github.com/actions/cache
180181
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
181182
with:
182183
path: ~/.cache/pre-commit

.github/actions/common-test-data/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ runs:
66
steps:
77
- name: Cached test data
88
id: cached-testdata-large
9-
# https://github.com/actions/cache/releases/tag/v4.2.3
9+
# https://github.com/actions/cache
1010
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
1111
with:
1212
path: tests/test_data/large

.github/actions/common-wheel-build/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ inputs:
1313
runs:
1414
using: "composite"
1515
steps:
16+
- name: Debug github_ref
17+
shell: bash
18+
run: echo "Received github_ref:" ${{ inputs.github_ref }}
19+
1620
- name: Update version in pyproject.toml
17-
if: inputs.github_ref != 'refs/heads/master'
21+
if: ${{ inputs.github_ref != 'refs/heads/master' }}
1822
shell: bash
1923
run: |
2024
bash ./scripts/ci/update-pyproject-version.sh

.github/actions/publish-wheels/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ runs:
55
using: "composite"
66
steps:
77
- name: Checkout repository
8-
# https://github.com/actions/checkout/releases/tag/v4.2.2
8+
# https://github.com/actions/checkout
99
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1010

1111
- name: Download built wheels
12-
# https://github.com/actions/download-artifact/releases/tag/v4.2.1
12+
# https://github.com/actions/download-artifact
1313
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
1414
with:
1515
path: dist/

.github/actions/upload-artifact-wheel/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ runs:
2626
2727
- name: Upload wheel artifact
2828
if: github.event_name == 'push'
29-
# https://github.com/actions/upload-artifact/releases/tag/v4.6.2
29+
# https://github.com/actions/upload-artifact
3030
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3131
with:
3232
name: ${{ env.ASSET_NAME }}

.github/workflows/build-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
build-docs:
99
runs-on: ubuntu-latest
1010
steps:
11-
# https://github.com/step-security/harden-runner/releases/tag/v2.11.0
11+
# https://github.com/step-security/harden-runner
1212
- uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
1313
with:
1414
egress-policy: audit

0 commit comments

Comments
 (0)