File tree Expand file tree Collapse file tree 5 files changed +33
-35
lines changed
jupyter/.github/workflows Expand file tree Collapse file tree 5 files changed +33
-35
lines changed Original file line number Diff line number Diff line change @@ -32,25 +32,35 @@ jobs:
3232 steps :
3333 - uses : actions/checkout@v4
3434
35+ - name : Prework
36+ run : |
37+ # python
38+ touch pyproject.toml
39+
40+ # node
41+ echo '{"name": "a", "version": "0.0.0", "scripts": {}}' > package.json
42+ printf 'lockfileVersion: '9.0'\nsettings:\n\tautoInstallPeers: true\n\texcludeLinksFromLockfile: false\nimporters:\n.: {}' > pnpm-lock.yaml
43+
44+ # rust
45+ printf '[package]\nname = "rust"\nversion = "0.1.0"\nedition = "2021"\n[dependencies]\n' > Cargo.toml
46+ mkdir -p src
47+ printf 'fn main() {\n println!("Hello, world!");\n}\n' > src/main.rs
48+
3549 - uses : actions-ext/python/setup@main
3650 with :
3751 version : ' 3.11'
3852
39- - run : pip install copier
53+ - run : uv pip install copier
4054
41- - uses : actions/setup- node@v4
55+ - uses : actions-ext/ node/setup@main
4256 with :
43- node- version : 20.x
57+ version : 20.x
4458
45- - uses : pnpm/action-setup@v4
46- with :
47- version : 9
59+ - uses : actions-ext/rust/setup@main
4860
49- - name : Set up Rust
50- uses : dtolnay/rust-toolchain@stable
51- with :
52- toolchain : stable
53- components : clippy, rustfmt
61+ - run : |
62+ pnpm install
63+ cargo build
5464
5565 - run : |
5666 make gen-${{matrix.template}}
Original file line number Diff line number Diff line change 6161 steps:
6262 - uses: actions/checkout@v4
6363
64- - name: Set up Python {% raw %} ${{ matrix.python-version }}{% endraw %}
65- uses: actions/setup-python@v5
64+ - uses: actions-ext/python/setup@main
6665 with:
67- python-version: {% raw %} ${{ matrix.python-version }}{% endraw %}
68- cache: 'pip'
69- cache-dependency-path: 'pyproject.toml'
66+ version: {% raw %} ${{ matrix.python-version }}{% endraw %}
7067
7168 - name: Install dependencies
7269 run: make develop
Original file line number Diff line number Diff line change @@ -36,18 +36,15 @@ jobs:
3636 steps:
3737 - uses: actions/checkout@v4
3838
39- - name: Set up Python {% raw %} ${{ matrix.python-version }}{% endraw %}
40- uses: actions/setup-python@v5
39+ - uses: actions-ext/python/setup@main
4140 with:
42- python-version: {% raw %} ${{ matrix.python-version }}{% endraw %}
43- cache: 'pip'
44- cache-dependency-path: 'pyproject.toml'
41+ version: {% raw %} ${{ matrix.python-version }}{% endraw %}
4542
4643 - name: Use Node.js {% raw %} ${{ matrix.node-version }}{% endraw %}
4744 uses: actions/setup-node@v4
4845 with:
4946 node-version: {% raw %} ${{ matrix.node-version }}{% endraw %}
50-
47+
5148 - name: Install pnpm
5249 uses: pnpm/action-setup@v4
5350 with:
Original file line number Diff line number Diff line change @@ -36,24 +36,21 @@ jobs:
3636 steps:
3737 - uses: actions/checkout@v4
3838
39- - name: Set up Python {% raw %} ${{ matrix.python-version }}{% endraw %}
40- uses: actions/setup-python@v5
39+ - uses: actions-ext/python/setup@main
4140 with:
42- python-version: {% raw %} ${{ matrix.python-version }}{% endraw %}
43- cache: 'pip'
44- cache-dependency-path: 'pyproject.toml'
41+ version: {% raw %} ${{ matrix.python-version }}{% endraw %}
4542
4643 - name: Use Node.js {% raw %} ${{ matrix.node-version }}{% endraw %}
4744 uses: actions/setup-node@v4
4845 with:
4946 node-version: {% raw %} ${{ matrix.node-version }}{% endraw %}
50-
47+
5148 - name: Install pnpm
5249 uses: pnpm/action-setup@v4
5350 with:
5451 version: 9
5552 package_json_file: js/package.json
56-
53+
5754 - name: Install dependencies
5855 run: make develop
5956
Original file line number Diff line number Diff line change 3535 steps:
3636 - uses: actions/checkout@v4
3737
38- - name: Set up Python {% raw %} ${{ matrix.python-version }}{% endraw %}
39- uses: actions/setup-python@v5
38+ - uses: actions-ext/python/setup@main
4039 with:
41- python-version: {% raw %} ${{ matrix.python-version }}{% endraw %}
42- cache: 'pip'
43- cache-dependency-path: 'pyproject.toml'
40+ version: {% raw %} ${{ matrix.python-version }}{% endraw %}
4441
4542 - name: Set up Rust
4643 uses: dtolnay/rust-toolchain@stable
5249 uses: Swatinem/rust-cache@v2
5350 with:
5451 key: {% raw %} ${{ matrix.os }}{% endraw %}
55-
52+
5653 - name: Setup rust targets (MacOS)
5754 run: |
5855 rustup toolchain install stable-x86_64-apple-darwin
You can’t perform that action at this time.
0 commit comments