From 1179f39490d176fa74bad2a9a6633341313e8141 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 16:49:50 +0200 Subject: [PATCH 01/25] Add tests --- .github/workflows/test.yml | 190 +++++++ action.yml | 1 + test/.gitignore | 2 + test/default/pixi.lock | 1036 ++++++++++++++++++++++++++++++++++++ test/default/pixi.toml | 12 + test/no-lockfile/pixi.toml | 12 + 6 files changed, 1253 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 test/.gitignore create mode 100644 test/default/pixi.lock create mode 100644 test/default/pixi.toml create mode 100644 test/no-lockfile/pixi.toml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..822cf696 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,190 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + merge_group: + +jobs: + default: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + - run: | + pixi info | grep -q "environment : test" + test -f .pixi/env/bin/python + ./pixi/env/bin/python --version | grep -q 3.11 + + no-run-install: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + run-install: false + - run: ! test -d .pixi + + custom-pixi-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + pixi-version: 0.1.0 + - run: pixi --version | grep -q "pixi 0.1.0" + + custom-pixi-url: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + pixi-url: https://github.com/prefix-dev/pixi/releases/download/v0.0.8/pixi-aarch64-unknown-linux-musl + - run: pixi --version | grep -q "pixi 0.0.8" + + custom-manifest-path: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + manifest-path: test/default/pixi.toml + + different-log-level: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + log-level: debug + + run-shell: + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + generate-run-shell: true + - run: python --version | grep -q "3.11" + shell: pixi-shell {0} + + custom-bin-path: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - name: Create bin directory + run: mkdir bin + - uses: ./ + with: + pixi-bin-path: bin/pixi + - run: | + which pixi | grep -q "..." + + auth-token: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + auth-host: TODO + auth-token: TODO + # TODO + # - run: + + auth-username-password: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + auth-host: TODO + auth-username: TODO + auth-password: TODO + + auth-conda-token: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + auth-host: TODO + auth-conda-token: TODO + + post-cleanup: + name: post-cleanup ${{ matrix.post-cleanup }} + runs-on: ubuntu-latest + strategy: + matrix: + include: + - post-cleanup: 'none' + env-exists: '' + cache-exists: '' + pixi-dir-exists: '' + - post-cleanup: 'environment' + env-exists: '! ' + cache-exists: '' + pixi-dir-exists: '' + - post-cleanup: 'all' + env-exists: '! ' + cache-exists: '! ' + pixi-dir-exists: '! ' + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: lisanna-dettwyler/action-post-run@d053b9b43d788b87a409f6cdb3b6fc87c6c8a4fe + with: + run: | + set -euxo pipefail + ${{ matrix.env-exists }}test -d .pixi + ${{ matrix.cache-exists }}test -d ~/.cache/rattler + ${{ matrix.pixi-dir-exists }}test -f ~/.pixi + - uses: ./ + with: + post-cleanup: ${{ matrix.post-cleanup }} + + no-lockfile: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/no-lockfile/* . + - uses: ./ + - run: | + pixi info | grep -q "environment : test-no-lockfile" + test -f .pixi/env/bin/python + ./pixi/env/bin/python --version | grep -q 3.11 diff --git a/action.yml b/action.yml index a785823e..d930fea1 100644 --- a/action.yml +++ b/action.yml @@ -50,6 +50,7 @@ inputs: If `none`, no cleanup is done. If `environment`, the pixi environment is removed. If `all`, the pixi environment, the pixi CLI are removed and the rattler cache is cleared. + Defaults to `all`. runs: using: node20 diff --git a/test/.gitignore b/test/.gitignore new file mode 100644 index 00000000..c9314b7c --- /dev/null +++ b/test/.gitignore @@ -0,0 +1,2 @@ +# pixi environments +.pixi diff --git a/test/default/pixi.lock b/test/default/pixi.lock new file mode 100644 index 00000000..ed966b63 --- /dev/null +++ b/test/default/pixi.lock @@ -0,0 +1,1036 @@ +metadata: + content_hash: + osx-64: e90c2ee71ad70fc0a1c8302029533a7d1498f2bffcd0eaa8d2934700e775dc1d + win-64: e90c2ee71ad70fc0a1c8302029533a7d1498f2bffcd0eaa8d2934700e775dc1d + linux-64: e90c2ee71ad70fc0a1c8302029533a7d1498f2bffcd0eaa8d2934700e775dc1d + channels: + - url: https://conda.anaconda.org/conda-forge/ + used_env_vars: [] + platforms: + - linux-64 + - osx-64 + - win-64 + sources: [] + time_metadata: null + git_metadata: null + inputs_metadata: null + custom_metadata: null +package: +- name: python + version: 3.11.5 + manager: conda + platform: win-64 + dependencies: + tzdata: '*' + openssl: '>=3.1.2,<4.0a0' + libffi: '>=3.4,<4.0a0' + libsqlite: '>=3.43.0,<4.0a0' + libzlib: '>=1.2.13,<1.3.0a0' + libexpat: '>=2.5.0,<3.0a0' + tk: '>=8.6.12,<8.7.0a0' + bzip2: '>=1.0.8,<2.0a0' + ucrt: '>=10.0.20348.0' + vc: '>=14.2,<15' + vc14_runtime: '>=14.29.30139' + xz: '>=5.2.6,<6.0a0' + url: https://conda.anaconda.org/conda-forge/win-64/python-3.11.5-h2628c8c_0_cpython.conda + hash: + md5: 28e01783b6a42f295fe07c7790aa75a1 + sha256: 0a44437eaf81055b91c1ae27a4be58609c31b3e7b94bd4d3e10204795c51bf04 + optional: false + category: main + build: h2628c8c_0_cpython + arch: x86_64 + subdir: win-64 + build_number: 0 + constrains: + - python_abi 3.11.* *_cp311 + license: Python-2.0 + size: 18153848 + timestamp: 1693106905439 +- name: xz + version: 5.2.6 + manager: conda + platform: win-64 + dependencies: + vc: '>=14.1,<15' + vs2015_runtime: '>=14.16.27033' + url: https://conda.anaconda.org/conda-forge/win-64/xz-5.2.6-h8d14728_0.tar.bz2 + hash: + md5: 515d77642eaa3639413c6b1bc3f94219 + sha256: 54d9778f75a02723784dc63aff4126ff6e6749ba21d11a6d03c1f4775f269fe0 + optional: false + category: main + build: h8d14728_0 + arch: x86_64 + subdir: win-64 + build_number: 0 + license: LGPL-2.1 and GPL-2.0 + size: 217804 + timestamp: 1660346976440 +- name: tk + version: 8.6.12 + manager: conda + platform: win-64 + dependencies: + vc: '>=14.1,<15' + vs2015_runtime: '>=14.16.27033' + url: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.12-h8ffe710_0.tar.bz2 + hash: + md5: c69a5047cc9291ae40afd4a1ad6f0c0f + sha256: 087795090a99a1d397ef1ed80b4a01fabfb0122efb141562c168e3c0a76edba6 + optional: false + category: main + build: h8ffe710_0 + arch: x86_64 + subdir: win-64 + build_number: 0 + license: TCL + license_family: BSD + size: 3681762 + timestamp: 1645033031535 +- name: openssl + version: 3.1.2 + manager: conda + platform: win-64 + dependencies: + ucrt: '>=10.0.20348.0' + ca-certificates: '*' + vc: '>=14.2,<15' + vc14_runtime: '>=14.29.30139' + url: https://conda.anaconda.org/conda-forge/win-64/openssl-3.1.2-hcfcfb64_0.conda + hash: + md5: 79b3f40f27cd80a265c276cea6714507 + sha256: 676b78a786bf845cdca96fa830459f1ffa6603954a88ad86f476456d0a909f4e + optional: false + category: main + build: hcfcfb64_0 + arch: x86_64 + subdir: win-64 + build_number: 0 + constrains: + - pyopenssl >=22.1 + license: Apache-2.0 + license_family: Apache + size: 7408520 + timestamp: 1690950343576 +- name: libsqlite + version: 3.43.0 + manager: conda + platform: win-64 + dependencies: + ucrt: '>=10.0.20348.0' + vc: '>=14.2,<15' + vc14_runtime: '>=14.29.30139' + url: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.43.0-hcfcfb64_0.conda + hash: + md5: 16c6f482e70cb3da41d0bee5d49c6bf3 + sha256: d79128a279c8e8b4afeef5cfe9d4302a2fd65b1af3973732d92a7cc396d5332f + optional: false + category: main + build: hcfcfb64_0 + arch: x86_64 + subdir: win-64 + build_number: 0 + license: Unlicense + size: 846526 + timestamp: 1692911612959 +- name: libexpat + version: 2.5.0 + manager: conda + platform: win-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.5.0-h63175ca_1.conda + hash: + md5: 636cc3cbbd2e28bcfd2f73b2044aac2c + sha256: 794b2a9be72f176a2767c299574d330ffb76b2ed75d7fd20bee3bbadce5886cf + optional: false + category: main + build: h63175ca_1 + arch: x86_64 + subdir: win-64 + build_number: 1 + constrains: + - expat 2.5.0.* + license: MIT + license_family: MIT + size: 138689 + timestamp: 1680190844101 +- name: vc + version: '14.3' + manager: conda + platform: win-64 + dependencies: + vc14_runtime: '>=14.36.32532' + url: https://conda.anaconda.org/conda-forge/win-64/vc-14.3-h64f974e_17.conda + hash: + md5: 67ff6791f235bb606659bf2a5c169191 + sha256: 86ae94bf680980776aa761c2b0909a0ddbe1f817e7eeb8b16a1730f10f8891b6 + optional: false + category: main + build: h64f974e_17 + arch: x86_64 + subdir: win-64 + build_number: 17 + track_features: + - vc14 + license: BSD-3-Clause + license_family: BSD + size: 17176 + timestamp: 1688020629925 +- name: vs2015_runtime + version: 14.36.32532 + manager: conda + platform: win-64 + dependencies: + vc14_runtime: '>=14.36.32532' + url: https://conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.36.32532-h05e6639_17.conda + hash: + md5: 4618046c39f7c81861e53ded842e738a + sha256: 5ecbd731dc7f13762d67be0eadc47eb7f14713005e430d9b5fc680e965ac0f81 + optional: false + category: main + build: h05e6639_17 + arch: x86_64 + subdir: win-64 + build_number: 17 + license: BSD-3-Clause + license_family: BSD + size: 17207 + timestamp: 1688020635322 +- name: vc14_runtime + version: 14.36.32532 + manager: conda + platform: win-64 + dependencies: + ucrt: '>=10.0.20348.0' + url: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.36.32532-hfdfe4a8_17.conda + hash: + md5: 91c1ecaf3996889532fc0456178b1058 + sha256: e76986c555647347a0185e646ef65625dabed60da255f6b30367df8bd6dc6cd8 + optional: false + category: main + build: hfdfe4a8_17 + arch: x86_64 + subdir: win-64 + build_number: 17 + constrains: + - vs2015_runtime 14.36.32532.* *_17 + license: LicenseRef-ProprietaryMicrosoft + license_family: Proprietary + size: 740599 + timestamp: 1688020615962 +- name: ucrt + version: 10.0.22621.0 + manager: conda + platform: win-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.22621.0-h57928b3_0.tar.bz2 + hash: + md5: 72608f6cd3e5898229c3ea16deb1ac43 + sha256: f29cdaf8712008f6b419b8b1a403923b00ab2504bfe0fb2ba8eb60e72d4f14c6 + optional: false + category: main + build: h57928b3_0 + arch: x86_64 + subdir: win-64 + build_number: 0 + constrains: + - vs2015_runtime >=14.29.30037 + license: LicenseRef-Proprietary + license_family: PROPRIETARY + size: 1283972 + timestamp: 1666630199266 +- name: ca-certificates + version: 2023.7.22 + manager: conda + platform: win-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/win-64/ca-certificates-2023.7.22-h56e8100_0.conda + hash: + md5: b1c2327b36f1a25d96f2039b0d3e3739 + sha256: b85a6f307f8e1c803cb570bdfb9e4d811a361417873ecd2ecf687587405a72e0 + optional: false + category: main + build: h56e8100_0 + arch: x86_64 + subdir: win-64 + build_number: 0 + license: ISC + size: 150013 + timestamp: 1690026269050 +- name: bzip2 + version: 1.0.8 + manager: conda + platform: win-64 + dependencies: + vc: '>=14.1,<15.0a0' + vs2015_runtime: '>=14.16.27012' + url: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h8ffe710_4.tar.bz2 + hash: + md5: 7c03c66026944073040cb19a4f3ec3c9 + sha256: 5389dad4e73e4865bb485f460fc60b120bae74404003d457ecb1a62eb7abf0c1 + optional: false + category: main + build: h8ffe710_4 + arch: x86_64 + subdir: win-64 + build_number: 4 + license: bzip2-1.0.6 + license_family: BSD + size: 152247 + timestamp: 1606605223049 +- name: libffi + version: 3.4.2 + manager: conda + platform: win-64 + dependencies: + vc: '>=14.1,<15.0a0' + vs2015_runtime: '>=14.16.27012' + url: https://conda.anaconda.org/conda-forge/win-64/libffi-3.4.2-h8ffe710_5.tar.bz2 + hash: + md5: 2c96d1b6915b408893f9472569dee135 + sha256: 1951ab740f80660e9bc07d2ed3aefb874d78c107264fd810f24a1a6211d4b1a5 + optional: false + category: main + build: h8ffe710_5 + arch: x86_64 + subdir: win-64 + build_number: 5 + license: MIT + license_family: MIT + size: 42063 + timestamp: 1636489106777 +- name: libzlib + version: 1.2.13 + manager: conda + platform: win-64 + dependencies: + ucrt: '>=10.0.20348.0' + vc: '>=14.2,<15' + vc14_runtime: '>=14.29.30139' + url: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.2.13-hcfcfb64_5.conda + hash: + md5: 5fdb9c6a113b6b6cb5e517fd972d5f41 + sha256: c161822ee8130b71e08b6d282b9919c1de2c5274b29921a867bca0f7d30cad26 + optional: false + category: main + build: hcfcfb64_5 + arch: x86_64 + subdir: win-64 + build_number: 5 + constrains: + - zlib 1.2.13 *_5 + license: Zlib + license_family: Other + size: 55800 + timestamp: 1686575452215 +- name: tzdata + version: 2023c + manager: conda + platform: win-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/noarch/tzdata-2023c-h71feb2d_0.conda + hash: + md5: 939e3e74d8be4dac89ce83b20de2492a + sha256: 0449138224adfa125b220154408419ec37c06b0b49f63c5954724325903ecf55 + optional: false + category: main + build: h71feb2d_0 + arch: x86_64 + subdir: win-64 + build_number: 0 + license: LicenseRef-Public-Domain + noarch: generic + size: 117580 + timestamp: 1680041306008 +- name: python + version: 3.11.5 + manager: conda + platform: linux-64 + dependencies: + openssl: '>=3.1.2,<4.0a0' + readline: '>=8.2,<9.0a0' + libzlib: '>=1.2.13,<1.3.0a0' + libnsl: '>=2.0.0,<2.1.0a0' + libsqlite: '>=3.43.0,<4.0a0' + libexpat: '>=2.5.0,<3.0a0' + libgcc-ng: '>=12' + libuuid: '>=2.38.1,<3.0a0' + xz: '>=5.2.6,<6.0a0' + ncurses: '>=6.4,<7.0a0' + ld_impl_linux-64: '>=2.36.1' + tzdata: '*' + libffi: '>=3.4,<4.0a0' + tk: '>=8.6.12,<8.7.0a0' + bzip2: '>=1.0.8,<2.0a0' + url: https://conda.anaconda.org/conda-forge/linux-64/python-3.11.5-hab00c5b_0_cpython.conda + hash: + md5: f0288cb82594b1cbc71111d1cd3c5422 + sha256: 920fe89dbc4aaf910e7a37cb4d865eaabe7ff1e5e6c3888d56fe7742ab181448 + optional: false + category: main + build: hab00c5b_0_cpython + arch: x86_64 + subdir: linux-64 + build_number: 0 + constrains: + - python_abi 3.11.* *_cp311 + license: Python-2.0 + size: 30813149 + timestamp: 1693108705832 +- name: xz + version: 5.2.6 + manager: conda + platform: linux-64 + dependencies: + libgcc-ng: '>=12' + url: https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.6-h166bdaf_0.tar.bz2 + hash: + md5: 2161070d867d1b1204ea749c8eec4ef0 + sha256: 03a6d28ded42af8a347345f82f3eebdd6807a08526d47899a42d62d319609162 + optional: false + category: main + build: h166bdaf_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + license: LGPL-2.1 and GPL-2.0 + size: 418368 + timestamp: 1660346797927 +- name: tk + version: 8.6.12 + manager: conda + platform: linux-64 + dependencies: + libzlib: '>=1.2.11,<1.3.0a0' + libgcc-ng: '>=9.4.0' + url: https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.12-h27826a3_0.tar.bz2 + hash: + md5: 5b8c42eb62e9fc961af70bdd6a26e168 + sha256: 032fd769aad9d4cad40ba261ab222675acb7ec951a8832455fce18ef33fa8df0 + optional: false + category: main + build: h27826a3_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + license: TCL + license_family: BSD + size: 3456292 + timestamp: 1645033615058 +- name: readline + version: '8.2' + manager: conda + platform: linux-64 + dependencies: + ncurses: '>=6.3,<7.0a0' + libgcc-ng: '>=12' + url: https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda + hash: + md5: 47d31b792659ce70f470b5c82fdfb7a4 + sha256: 5435cf39d039387fbdc977b0a762357ea909a7694d9528ab40f005e9208744d7 + optional: false + category: main + build: h8228510_1 + arch: x86_64 + subdir: linux-64 + build_number: 1 + license: GPL-3.0-only + license_family: GPL + size: 281456 + timestamp: 1679532220005 +- name: openssl + version: 3.1.2 + manager: conda + platform: linux-64 + dependencies: + ca-certificates: '*' + libgcc-ng: '>=12' + url: https://conda.anaconda.org/conda-forge/linux-64/openssl-3.1.2-hd590300_0.conda + hash: + md5: e5ac5227582d6c83ccf247288c0eb095 + sha256: b113fbac327c90cdc29c2fac0f2a2e5cc0d1918b2a5ffa7abd49b695b9b3c6e9 + optional: false + category: main + build: hd590300_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + constrains: + - pyopenssl >=22.1 + license: Apache-2.0 + license_family: Apache + size: 2646546 + timestamp: 1690948722548 +- name: ncurses + version: '6.4' + manager: conda + platform: linux-64 + dependencies: + libgcc-ng: '>=12' + url: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.4-hcb278e6_0.conda + hash: + md5: 681105bccc2a3f7f1a837d47d39c9179 + sha256: ccf61e61d58a8a7b2d66822d5568e2dc9387883dd9b2da61e1d787ece4c4979a + optional: false + category: main + build: hcb278e6_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + license: X11 AND BSD-3-Clause + size: 880967 + timestamp: 1686076725450 +- name: libuuid + version: 2.38.1 + manager: conda + platform: linux-64 + dependencies: + libgcc-ng: '>=12' + url: https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.38.1-h0b41bf4_0.conda + hash: + md5: 40b61aab5c7ba9ff276c41cfffe6b80b + sha256: 787eb542f055a2b3de553614b25f09eefb0a0931b0c87dbcce6efdfd92f04f18 + optional: false + category: main + build: h0b41bf4_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + license: BSD-3-Clause + license_family: BSD + size: 33601 + timestamp: 1680112270483 +- name: libsqlite + version: 3.43.0 + manager: conda + platform: linux-64 + dependencies: + libzlib: '>=1.2.13,<1.3.0a0' + libgcc-ng: '>=12' + url: https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.43.0-h2797004_0.conda + hash: + md5: 903fa782a9067d5934210df6d79220f6 + sha256: e715fab7ec6b3f3df2a5962ef372ff0f871d215fe819482dcd80357999513652 + optional: false + category: main + build: h2797004_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + license: Unlicense + size: 840871 + timestamp: 1692911324643 +- name: libnsl + version: 2.0.0 + manager: conda + platform: linux-64 + dependencies: + libgcc-ng: '>=9.4.0' + url: https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.0-h7f98852_0.tar.bz2 + hash: + md5: 39b1328babf85c7c3a61636d9cd50206 + sha256: 32f4fb94d99946b0dabfbbfd442b25852baf909637f2eed1ffe3baea15d02aad + optional: false + category: main + build: h7f98852_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + license: GPL-2.0-only + license_family: GPL + size: 31236 + timestamp: 1633040059627 +- name: libexpat + version: 2.5.0 + manager: conda + platform: linux-64 + dependencies: + libgcc-ng: '>=12' + url: https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.5.0-hcb278e6_1.conda + hash: + md5: 6305a3dd2752c76335295da4e581f2fd + sha256: 74c98a563777ae2ad71f1f74d458a8ab043cee4a513467c159ccf159d0e461f3 + optional: false + category: main + build: hcb278e6_1 + arch: x86_64 + subdir: linux-64 + build_number: 1 + constrains: + - expat 2.5.0.* + license: MIT + license_family: MIT + size: 77980 + timestamp: 1680190528313 +- name: libgcc-ng + version: 13.1.0 + manager: conda + platform: linux-64 + dependencies: + _libgcc_mutex: ==0.1 conda_forge + _openmp_mutex: '>=4.5' + url: https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-13.1.0-he5830b7_0.conda + hash: + md5: cd93f779ff018dd85c7544c015c9db3c + sha256: fba897a02f35b2b5e6edc43a746d1fa6970a77b422f258246316110af8966911 + optional: false + category: main + build: he5830b7_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + constrains: + - libgomp 13.1.0 he5830b7_0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + size: 776294 + timestamp: 1685816209343 +- name: _libgcc_mutex + version: '0.1' + manager: conda + platform: linux-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2 + hash: + md5: d7c89558ba9fa0495403155b64376d81 + sha256: fe51de6107f9edc7aa4f786a70f4a883943bc9d39b3bb7307c04c41410990726 + optional: false + category: main + build: conda_forge + arch: x86_64 + subdir: linux-64 + build_number: 0 + license: None + size: 2562 + timestamp: 1578324546067 +- name: libzlib + version: 1.2.13 + manager: conda + platform: linux-64 + dependencies: + libgcc-ng: '>=12' + url: https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.2.13-hd590300_5.conda + hash: + md5: f36c115f1ee199da648e0597ec2047ad + sha256: 370c7c5893b737596fd6ca0d9190c9715d89d888b8c88537ae1ef168c25e82e4 + optional: false + category: main + build: hd590300_5 + arch: x86_64 + subdir: linux-64 + build_number: 5 + constrains: + - zlib 1.2.13 *_5 + license: Zlib + license_family: Other + size: 61588 + timestamp: 1686575217516 +- name: _openmp_mutex + version: '4.5' + manager: conda + platform: linux-64 + dependencies: + libgomp: '>=7.5.0' + _libgcc_mutex: ==0.1 conda_forge + url: https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2 + hash: + md5: 73aaf86a425cc6e73fcf236a5a46396d + sha256: fbe2c5e56a653bebb982eda4876a9178aedfc2b545f25d0ce9c4c0b508253d22 + optional: false + category: main + build: 2_gnu + arch: x86_64 + subdir: linux-64 + build_number: 16 + constrains: + - openmp_impl 9999 + license: BSD-3-Clause + license_family: BSD + size: 23621 + timestamp: 1650670423406 +- name: libgomp + version: 13.1.0 + manager: conda + platform: linux-64 + dependencies: + _libgcc_mutex: ==0.1 conda_forge + url: https://conda.anaconda.org/conda-forge/linux-64/libgomp-13.1.0-he5830b7_0.conda + hash: + md5: 56ca14d57ac29a75d23a39eb3ee0ddeb + sha256: 5d441d80b57f857ad305a65169a6b915d4fd6735cdc9e9bded35d493c91ef16d + optional: false + category: main + build: he5830b7_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + license: GPL-3.0-only WITH GCC-exception-3.1 + license_family: GPL + size: 419184 + timestamp: 1685816132543 +- name: ca-certificates + version: 2023.7.22 + manager: conda + platform: linux-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2023.7.22-hbcca054_0.conda + hash: + md5: a73ecd2988327ad4c8f2c331482917f2 + sha256: 525b7b6b5135b952ec1808de84e5eca57c7c7ff144e29ef3e96ae4040ff432c1 + optional: false + category: main + build: hbcca054_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + license: ISC + size: 149515 + timestamp: 1690026108541 +- name: bzip2 + version: 1.0.8 + manager: conda + platform: linux-64 + dependencies: + libgcc-ng: '>=9.3.0' + url: https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-h7f98852_4.tar.bz2 + hash: + md5: a1fd65c7ccbf10880423d82bca54eb54 + sha256: cb521319804640ff2ad6a9f118d972ed76d86bea44e5626c09a13d38f562e1fa + optional: false + category: main + build: h7f98852_4 + arch: x86_64 + subdir: linux-64 + build_number: 4 + license: bzip2-1.0.6 + license_family: BSD + size: 495686 + timestamp: 1606604745109 +- name: ld_impl_linux-64 + version: '2.40' + manager: conda + platform: linux-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.40-h41732ed_0.conda + hash: + md5: 7aca3059a1729aa76c597603f10b0dd3 + sha256: f6cc89d887555912d6c61b295d398cff9ec982a3417d38025c45d5dd9b9e79cd + optional: false + category: main + build: h41732ed_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + constrains: + - binutils_impl_linux-64 2.40 + license: GPL-3.0-only + license_family: GPL + size: 704696 + timestamp: 1674833944779 +- name: libffi + version: 3.4.2 + manager: conda + platform: linux-64 + dependencies: + libgcc-ng: '>=9.4.0' + url: https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.2-h7f98852_5.tar.bz2 + hash: + md5: d645c6d2ac96843a2bfaccd2d62b3ac3 + sha256: ab6e9856c21709b7b517e940ae7028ae0737546122f83c2aa5d692860c3b149e + optional: false + category: main + build: h7f98852_5 + arch: x86_64 + subdir: linux-64 + build_number: 5 + license: MIT + license_family: MIT + size: 58292 + timestamp: 1636488182923 +- name: tzdata + version: 2023c + manager: conda + platform: linux-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/noarch/tzdata-2023c-h71feb2d_0.conda + hash: + md5: 939e3e74d8be4dac89ce83b20de2492a + sha256: 0449138224adfa125b220154408419ec37c06b0b49f63c5954724325903ecf55 + optional: false + category: main + build: h71feb2d_0 + arch: x86_64 + subdir: linux-64 + build_number: 0 + license: LicenseRef-Public-Domain + noarch: generic + size: 117580 + timestamp: 1680041306008 +- name: python + version: 3.11.5 + manager: conda + platform: osx-64 + dependencies: + tzdata: '*' + openssl: '>=3.1.2,<4.0a0' + readline: '>=8.2,<9.0a0' + libffi: '>=3.4,<4.0a0' + libsqlite: '>=3.43.0,<4.0a0' + libzlib: '>=1.2.13,<1.3.0a0' + libexpat: '>=2.5.0,<3.0a0' + tk: '>=8.6.12,<8.7.0a0' + bzip2: '>=1.0.8,<2.0a0' + xz: '>=5.2.6,<6.0a0' + ncurses: '>=6.4,<7.0a0' + url: https://conda.anaconda.org/conda-forge/osx-64/python-3.11.5-h30d4d87_0_cpython.conda + hash: + md5: ef2b263b5b02d2acf00908bb07c14b12 + sha256: b836e2a96526fca7f4686fc5297fecd05f90992902eb9612f50da577932cf48c + optional: false + category: main + build: h30d4d87_0_cpython + arch: x86_64 + subdir: osx-64 + build_number: 0 + constrains: + - python_abi 3.11.* *_cp311 + license: Python-2.0 + size: 15475266 + timestamp: 1693108451698 +- name: xz + version: 5.2.6 + manager: conda + platform: osx-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/osx-64/xz-5.2.6-h775f41a_0.tar.bz2 + hash: + md5: a72f9d4ea13d55d745ff1ed594747f10 + sha256: eb09823f34cc2dd663c0ec4ab13f246f45dcd52e5b8c47b9864361de5204a1c8 + optional: false + category: main + build: h775f41a_0 + arch: x86_64 + subdir: osx-64 + build_number: 0 + license: LGPL-2.1 and GPL-2.0 + size: 238119 + timestamp: 1660346964847 +- name: tk + version: 8.6.12 + manager: conda + platform: osx-64 + dependencies: + libzlib: '>=1.2.11,<1.3.0a0' + url: https://conda.anaconda.org/conda-forge/osx-64/tk-8.6.12-h5dbffcc_0.tar.bz2 + hash: + md5: 8e9480d9c47061db2ed1b4ecce519a7f + sha256: 331aa1137a264fd9cc905f04f09a161c801fe504b93da08b4e6697bd7c9ae6a6 + optional: false + category: main + build: h5dbffcc_0 + arch: x86_64 + subdir: osx-64 + build_number: 0 + license: TCL + license_family: BSD + size: 3531016 + timestamp: 1645032719565 +- name: readline + version: '8.2' + manager: conda + platform: osx-64 + dependencies: + ncurses: '>=6.3,<7.0a0' + url: https://conda.anaconda.org/conda-forge/osx-64/readline-8.2-h9e318b2_1.conda + hash: + md5: f17f77f2acf4d344734bda76829ce14e + sha256: 41e7d30a097d9b060037f0c6a2b1d4c4ae7e942c06c943d23f9d481548478568 + optional: false + category: main + build: h9e318b2_1 + arch: x86_64 + subdir: osx-64 + build_number: 1 + license: GPL-3.0-only + license_family: GPL + size: 255870 + timestamp: 1679532707590 +- name: openssl + version: 3.1.2 + manager: conda + platform: osx-64 + dependencies: + ca-certificates: '*' + url: https://conda.anaconda.org/conda-forge/osx-64/openssl-3.1.2-h8a1eda9_0.conda + hash: + md5: 85d5377436d19183c8ac5afbb8e713a1 + sha256: 5d28695e086e69150e0b674f11ad87df603870fb3256bd590e305b708fc1faf7 + optional: false + category: main + build: h8a1eda9_0 + arch: x86_64 + subdir: osx-64 + build_number: 0 + constrains: + - pyopenssl >=22.1 + license: Apache-2.0 + license_family: Apache + size: 2326918 + timestamp: 1690949380796 +- name: ncurses + version: '6.4' + manager: conda + platform: osx-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/osx-64/ncurses-6.4-hf0c8a7f_0.conda + hash: + md5: c3dbae2411164d9b02c69090a9a91857 + sha256: 7841b1fce1ffb0bfb038f9687b92f04d64acab1f7cb96431972386ea98c7b2fd + optional: false + category: main + build: hf0c8a7f_0 + arch: x86_64 + subdir: osx-64 + build_number: 0 + license: X11 AND BSD-3-Clause + size: 828118 + timestamp: 1686077056765 +- name: libsqlite + version: 3.43.0 + manager: conda + platform: osx-64 + dependencies: + libzlib: '>=1.2.13,<1.3.0a0' + url: https://conda.anaconda.org/conda-forge/osx-64/libsqlite-3.43.0-h58db7d2_0.conda + hash: + md5: e2195038e85e49e26fbeb7efc0ad38c4 + sha256: 3c3e06284c3426126901891675d09e181c651b2db01df9884da2613015e3fbac + optional: false + category: main + build: h58db7d2_0 + arch: x86_64 + subdir: osx-64 + build_number: 0 + license: Unlicense + size: 891003 + timestamp: 1692911591798 +- name: libexpat + version: 2.5.0 + manager: conda + platform: osx-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/osx-64/libexpat-2.5.0-hf0c8a7f_1.conda + hash: + md5: 6c81cb022780ee33435cca0127dd43c9 + sha256: 80024bd9f44d096c4cc07fb2bac76b5f1f7553390112dab3ad6acb16a05f0b96 + optional: false + category: main + build: hf0c8a7f_1 + arch: x86_64 + subdir: osx-64 + build_number: 1 + constrains: + - expat 2.5.0.* + license: MIT + license_family: MIT + size: 69602 + timestamp: 1680191040160 +- name: libzlib + version: 1.2.13 + manager: conda + platform: osx-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/osx-64/libzlib-1.2.13-h8a1eda9_5.conda + hash: + md5: 4a3ad23f6e16f99c04e166767193d700 + sha256: fc58ad7f47ffea10df1f2165369978fba0a1cc32594aad778f5eec725f334867 + optional: false + category: main + build: h8a1eda9_5 + arch: x86_64 + subdir: osx-64 + build_number: 5 + constrains: + - zlib 1.2.13 *_5 + license: Zlib + license_family: Other + size: 59404 + timestamp: 1686575566695 +- name: ca-certificates + version: 2023.7.22 + manager: conda + platform: osx-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/osx-64/ca-certificates-2023.7.22-h8857fd0_0.conda + hash: + md5: bf2c54c18997bf3542af074c10191771 + sha256: 27de15e18a12117e83ac1eb8a8e52eb65731cc7f0b607a7922206a15e2460c7b + optional: false + category: main + build: h8857fd0_0 + arch: x86_64 + subdir: osx-64 + build_number: 0 + license: ISC + size: 149911 + timestamp: 1690026363769 +- name: bzip2 + version: 1.0.8 + manager: conda + platform: osx-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/osx-64/bzip2-1.0.8-h0d85af4_4.tar.bz2 + hash: + md5: 37edc4e6304ca87316e160f5ca0bd1b5 + sha256: 60ba4c64f5d0afca0d283c7addba577d3e2efc0db86002808dadb0498661b2f2 + optional: false + category: main + build: h0d85af4_4 + arch: x86_64 + subdir: osx-64 + build_number: 4 + license: bzip2-1.0.6 + license_family: BSD + size: 158829 + timestamp: 1618862580095 +- name: libffi + version: 3.4.2 + manager: conda + platform: osx-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/osx-64/libffi-3.4.2-h0d85af4_5.tar.bz2 + hash: + md5: ccb34fb14960ad8b125962d3d79b31a9 + sha256: 7a2d27a936ceee6942ea4d397f9c7d136f12549d86f7617e8b6bad51e01a941f + optional: false + category: main + build: h0d85af4_5 + arch: x86_64 + subdir: osx-64 + build_number: 5 + license: MIT + license_family: MIT + size: 51348 + timestamp: 1636488394370 +- name: tzdata + version: 2023c + manager: conda + platform: osx-64 + dependencies: {} + url: https://conda.anaconda.org/conda-forge/noarch/tzdata-2023c-h71feb2d_0.conda + hash: + md5: 939e3e74d8be4dac89ce83b20de2492a + sha256: 0449138224adfa125b220154408419ec37c06b0b49f63c5954724325903ecf55 + optional: false + category: main + build: h71feb2d_0 + arch: x86_64 + subdir: osx-64 + build_number: 0 + license: LicenseRef-Public-Domain + noarch: generic + size: 117580 + timestamp: 1680041306008 +version: 1 diff --git a/test/default/pixi.toml b/test/default/pixi.toml new file mode 100644 index 00000000..da6ec72e --- /dev/null +++ b/test/default/pixi.toml @@ -0,0 +1,12 @@ +[project] +name = "test-default" +version = "0.1.0" +description = "Add a short description here" +authors = ["Pavel Zwerschke "] +channels = ["conda-forge"] +platforms = ["linux-64", "osx-64", "win-64"] + +[tasks] + +[dependencies] +python = "3.11.*" diff --git a/test/no-lockfile/pixi.toml b/test/no-lockfile/pixi.toml new file mode 100644 index 00000000..d25cb627 --- /dev/null +++ b/test/no-lockfile/pixi.toml @@ -0,0 +1,12 @@ +[project] +name = "test-no-lockfile" +version = "0.1.0" +description = "Add a short description here" +authors = ["Pavel Zwerschke "] +channels = ["conda-forge"] +platforms = ["linux-64", "osx-64", "win-64"] + +[tasks] + +[dependencies] +python = "3.11.*" From 15653b7ec67a2e2ff12faf92a895c76b95167c25 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 16:56:36 +0200 Subject: [PATCH 02/25] ? --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 822cf696..a14b9cff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,8 @@ jobs: - uses: ./ with: run-install: false - - run: ! test -d .pixi + - run: | + ! test -d .pixi custom-pixi-version: runs-on: ubuntu-latest From c93210e46e982df0a1974da33dc0a001c28985ea Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:02:07 +0200 Subject: [PATCH 03/25] . --- dist/index.js | 2 +- src/options.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index dacf675a..4396826a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61061,7 +61061,7 @@ var parseOrUndefinedJSON = (key, schema) => { return schema.parse(JSON.parse(input)); }; var validateInputs = (inputs) => { - if (!inputs.pixiVersion && !inputs.pixiUrl) { + if (inputs.pixiVersion && inputs.pixiUrl) { throw new Error("You need to specify either pixi-version or pixi-url"); } if (inputs.cacheKey !== void 0 && inputs.cache === false) { diff --git a/src/options.ts b/src/options.ts index fb15b4c7..bd4bf3d5 100644 --- a/src/options.ts +++ b/src/options.ts @@ -90,7 +90,7 @@ const parseOrUndefinedJSON = (key: string, schema: z.ZodSchema): T | undef } const validateInputs = (inputs: Inputs): void => { - if (!inputs.pixiVersion && !inputs.pixiUrl) { + if (inputs.pixiVersion && inputs.pixiUrl) { throw new Error('You need to specify either pixi-version or pixi-url') } if (inputs.cacheKey !== undefined && inputs.cache === false) { From c07f40e4aed7c9ad6144dba42207cce83c788159 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:07:22 +0200 Subject: [PATCH 04/25] . --- dist/index.js | 2 +- src/options.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4396826a..b8037cfd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61089,7 +61089,7 @@ var validateInputs = (inputs) => { }; var inferOptions = (inputs) => { const runInstall = inputs.runInstall ?? true; - const pixiSource = inputs.pixiVersion ? { version: inputs.pixiVersion } : { url: inputs.pixiUrl }; + const pixiSource = inputs.pixiVersion ? { version: inputs.pixiVersion } : inputs.pixiUrl ? { url: inputs.pixiUrl } : { version: "latest" }; const logLevel = inputs.logLevel ?? (core2.isDebug() ? "debug" : "info"); const manifestPath = inputs.manifestPath ?? "pixi.toml"; const pixiLockFile = import_path.default.basename(manifestPath).replace(/\.toml$/, ".lock"); diff --git a/src/options.ts b/src/options.ts index bd4bf3d5..ca1995cd 100644 --- a/src/options.ts +++ b/src/options.ts @@ -123,7 +123,11 @@ const validateInputs = (inputs: Inputs): void => { const inferOptions = (inputs: Inputs): Options => { const runInstall = inputs.runInstall ?? true - const pixiSource = inputs.pixiVersion ? { version: inputs.pixiVersion } : { url: inputs.pixiUrl! } + const pixiSource = inputs.pixiVersion + ? { version: inputs.pixiVersion } + : inputs.pixiUrl + ? { url: inputs.pixiUrl } + : { version: 'latest' } const logLevel = inputs.logLevel ?? (core.isDebug() ? 'debug' : 'info') const manifestPath = inputs.manifestPath ?? 'pixi.toml' const pixiLockFile = path.basename(manifestPath).replace(/\.toml$/, '.lock') From 6771fbfcbc2afe5aff3f2299be7e43721b3c0424 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:16:24 +0200 Subject: [PATCH 05/25] . --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a14b9cff..67eaa45a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,18 @@ jobs: test -f .pixi/env/bin/python ./pixi/env/bin/python --version | grep -q 3.11 + no-run-install-2: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + run-install: false + - run: | + pixi install --manifest-path pixi.toml -vv + no-run-install: runs-on: ubuntu-latest steps: From a03b23959f7166237b70f8e1851e2bff9c3f5aee Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:16:58 +0200 Subject: [PATCH 06/25] . --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 67eaa45a..208bd04e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: with: run-install: false - run: | - pixi install --manifest-path pixi.toml -vv + pixi install pixi.toml -vv no-run-install: runs-on: ubuntu-latest From e8f68aa27b9fa26da3f67577c6ec97cd9bcad478 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:17:40 +0200 Subject: [PATCH 07/25] . --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 208bd04e..b5dbde4e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: with: run-install: false - run: | - pixi install pixi.toml -vv + pixi install -vv no-run-install: runs-on: ubuntu-latest From fa42d5e4966385e61b1f50ac285b6df0286f736e Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:30:10 +0200 Subject: [PATCH 08/25] . --- dist/index.js | 3 --- src/util.ts | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index b8037cfd..f8eddb30 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61015,9 +61015,6 @@ var execute = (cmd) => { }; var pixiCmd = (command, withManifestPath = true) => { let commandArray = [options.pixiBinPath].concat(command.split(" ")); - if (withManifestPath) { - commandArray = commandArray.concat(["--manifest-path", options.manifestPath]); - } switch (options.logLevel) { case "trace": commandArray = commandArray.concat(["-vvv"]); diff --git a/src/util.ts b/src/util.ts index e3ddbf5e..4da2b6ca 100644 --- a/src/util.ts +++ b/src/util.ts @@ -75,9 +75,9 @@ export const execute = (cmd: string[]) => { export const pixiCmd = (command: string, withManifestPath = true) => { let commandArray = [options.pixiBinPath].concat(command.split(' ')) - if (withManifestPath) { - commandArray = commandArray.concat(['--manifest-path', options.manifestPath]) - } + // if (withManifestPath) { + // commandArray = commandArray.concat(['--manifest-path', options.manifestPath]) + // } switch (options.logLevel) { case 'trace': commandArray = commandArray.concat(['-vvv']) From 1b66fee6ed21c0c3c068390160413e62ac00efe0 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:32:13 +0200 Subject: [PATCH 09/25] . --- dist/index.js | 2 +- src/util.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index f8eddb30..a2b3a028 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61004,7 +61004,7 @@ var getPixiUrlFromVersion = (version3) => { if (version3 === "latest") { return `https://github.com/prefix-dev/pixi/releases/latest/download/${pixiFile}`; } - return `https://github.com/mamba-org/micromamba-releases/releases/download/${version3}/${pixiFile}`; + return `https://github.com/prefix-dev/pixi/releases/download/${version3}/${pixiFile}`; }; var sha256 = (s) => { return (0, import_crypto4.createHash)("sha256").update(s).digest("hex"); diff --git a/src/util.ts b/src/util.ts index 4da2b6ca..d1edefdf 100644 --- a/src/util.ts +++ b/src/util.ts @@ -57,7 +57,7 @@ export const getPixiUrlFromVersion = (version: string) => { if (version === 'latest') { return `https://github.com/prefix-dev/pixi/releases/latest/download/${pixiFile}` } - return `https://github.com/mamba-org/micromamba-releases/releases/download/${version}/${pixiFile}` + return `https://github.com/prefix-dev/pixi/releases/download/${version}/${pixiFile}` } export const sha256 = (s: BinaryLike) => { From beb5a66e334412002ca6dc0249c0c1a8d68483dc Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:33:36 +0200 Subject: [PATCH 10/25] debug --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b5dbde4e..c7439076 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,6 +16,8 @@ jobs: run: mv test/default/* . - uses: ./ - run: | + set -x + pixi info pixi info | grep -q "environment : test" test -f .pixi/env/bin/python ./pixi/env/bin/python --version | grep -q 3.11 From b0cab55313a069388291723f5d67510428af6215 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:35:12 +0200 Subject: [PATCH 11/25] . --- .github/workflows/test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7439076..b4739fe6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,9 +16,7 @@ jobs: run: mv test/default/* . - uses: ./ - run: | - set -x pixi info - pixi info | grep -q "environment : test" test -f .pixi/env/bin/python ./pixi/env/bin/python --version | grep -q 3.11 From 11ab42434e14dfd0c0b84e9d4b14762718baa04f Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:37:36 +0200 Subject: [PATCH 12/25] . --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4739fe6..59fb4c1e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: - run: | pixi info test -f .pixi/env/bin/python - ./pixi/env/bin/python --version | grep -q 3.11 + ./.pixi/env/bin/python --version | grep -q 3.11 no-run-install-2: runs-on: ubuntu-latest From a9b9bcc09c597ec13bcfd7ef9e86779e077ab5c1 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:45:59 +0200 Subject: [PATCH 13/25] . --- .github/workflows/test.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59fb4c1e..c726f776 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,17 +20,17 @@ jobs: test -f .pixi/env/bin/python ./.pixi/env/bin/python --version | grep -q 3.11 - no-run-install-2: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Move pixi.toml - run: mv test/default/* . - - uses: ./ - with: - run-install: false - - run: | - pixi install -vv + # no-run-install-2: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Move pixi.toml + # run: mv test/default/* . + # - uses: ./ + # with: + # run-install: false + # - run: | + # pixi install -vv no-run-install: runs-on: ubuntu-latest @@ -52,7 +52,7 @@ jobs: run: mv test/default/* . - uses: ./ with: - pixi-version: 0.1.0 + pixi-version: v0.1.0 - run: pixi --version | grep -q "pixi 0.1.0" custom-pixi-url: @@ -64,6 +64,8 @@ jobs: - uses: ./ with: pixi-url: https://github.com/prefix-dev/pixi/releases/download/v0.0.8/pixi-aarch64-unknown-linux-musl + - run: cat ~/.pixi/bin/pixi + if: always() - run: pixi --version | grep -q "pixi 0.0.8" custom-manifest-path: From ebb64204aca365e1dca3d2bce7625f799e46790a Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:46:38 +0200 Subject: [PATCH 14/25] . --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c726f776..264d93bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,7 +64,7 @@ jobs: - uses: ./ with: pixi-url: https://github.com/prefix-dev/pixi/releases/download/v0.0.8/pixi-aarch64-unknown-linux-musl - - run: cat ~/.pixi/bin/pixi + - run: ls -l ~/.pixi/bin/pixi if: always() - run: pixi --version | grep -q "pixi 0.0.8" From c1ce9766c52d1d0a9057a10e584f249cac97136a Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:47:43 +0200 Subject: [PATCH 15/25] . --- .github/workflows/test.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 264d93bd..b1c81678 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -63,9 +63,7 @@ jobs: run: mv test/default/* . - uses: ./ with: - pixi-url: https://github.com/prefix-dev/pixi/releases/download/v0.0.8/pixi-aarch64-unknown-linux-musl - - run: ls -l ~/.pixi/bin/pixi - if: always() + pixi-url: https://github.com/prefix-dev/pixi/releases/download/v0.0.8/pixi-x86_64-unknown-linux-musl - run: pixi --version | grep -q "pixi 0.0.8" custom-manifest-path: From 06b515e1396b40c9c7fe9a43897c5a74d8a6fa9d Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:49:24 +0200 Subject: [PATCH 16/25] . --- dist/index.js | 3 +++ src/util.ts | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index a2b3a028..c385fba1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61015,6 +61015,9 @@ var execute = (cmd) => { }; var pixiCmd = (command, withManifestPath = true) => { let commandArray = [options.pixiBinPath].concat(command.split(" ")); + if (withManifestPath) { + commandArray = commandArray.concat(["--manifest-path", options.manifestPath]); + } switch (options.logLevel) { case "trace": commandArray = commandArray.concat(["-vvv"]); diff --git a/src/util.ts b/src/util.ts index d1edefdf..aabf3659 100644 --- a/src/util.ts +++ b/src/util.ts @@ -75,9 +75,9 @@ export const execute = (cmd: string[]) => { export const pixiCmd = (command: string, withManifestPath = true) => { let commandArray = [options.pixiBinPath].concat(command.split(' ')) - // if (withManifestPath) { - // commandArray = commandArray.concat(['--manifest-path', options.manifestPath]) - // } + if (withManifestPath) { + commandArray = commandArray.concat(['--manifest-path', options.manifestPath]) + } switch (options.logLevel) { case 'trace': commandArray = commandArray.concat(['-vvv']) From 7b71e05db4a8b53328b60f52c0e1f68cf98fcab2 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:54:38 +0200 Subject: [PATCH 17/25] . --- dist/index.js | 5 +---- src/options.ts | 2 +- src/util.ts | 6 +++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/dist/index.js b/dist/index.js index c385fba1..71d986c5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61015,9 +61015,6 @@ var execute = (cmd) => { }; var pixiCmd = (command, withManifestPath = true) => { let commandArray = [options.pixiBinPath].concat(command.split(" ")); - if (withManifestPath) { - commandArray = commandArray.concat(["--manifest-path", options.manifestPath]); - } switch (options.logLevel) { case "trace": commandArray = commandArray.concat(["-vvv"]); @@ -61121,7 +61118,7 @@ var assertOptions = (_options) => { }; var getOptions = () => { const inputs = { - pixiVersion: parseOrUndefined("pixi-version", unionType([literalType("latest"), stringType().regex(/^\d+\.\d+\.\d+$/)])), + pixiVersion: parseOrUndefined("pixi-version", unionType([literalType("latest"), stringType().regex(/^v\d+\.\d+\.\d+$/)])), pixiUrl: parseOrUndefined("pixi-url", stringType().url()), logLevel: parseOrUndefined("log-level", logLevelSchema), manifestPath: parseOrUndefined("manifest-path", stringType()), diff --git a/src/options.ts b/src/options.ts index ca1995cd..e7fca3fe 100644 --- a/src/options.ts +++ b/src/options.ts @@ -169,7 +169,7 @@ const assertOptions = (_options: Options) => { const getOptions = () => { const inputs: Inputs = { - pixiVersion: parseOrUndefined('pixi-version', z.union([z.literal('latest'), z.string().regex(/^\d+\.\d+\.\d+$/)])), + pixiVersion: parseOrUndefined('pixi-version', z.union([z.literal('latest'), z.string().regex(/^v\d+\.\d+\.\d+$/)])), pixiUrl: parseOrUndefined('pixi-url', z.string().url()), logLevel: parseOrUndefined('log-level', logLevelSchema), manifestPath: parseOrUndefined('manifest-path', z.string()), diff --git a/src/util.ts b/src/util.ts index aabf3659..d1edefdf 100644 --- a/src/util.ts +++ b/src/util.ts @@ -75,9 +75,9 @@ export const execute = (cmd: string[]) => { export const pixiCmd = (command: string, withManifestPath = true) => { let commandArray = [options.pixiBinPath].concat(command.split(' ')) - if (withManifestPath) { - commandArray = commandArray.concat(['--manifest-path', options.manifestPath]) - } + // if (withManifestPath) { + // commandArray = commandArray.concat(['--manifest-path', options.manifestPath]) + // } switch (options.logLevel) { case 'trace': commandArray = commandArray.concat(['-vvv']) From 9b2506bec8971dbe20809b6f17f4b6776143fb9f Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 17:59:05 +0200 Subject: [PATCH 18/25] . --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b1c81678..4db44423 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -198,6 +198,6 @@ jobs: run: mv test/no-lockfile/* . - uses: ./ - run: | - pixi info | grep -q "environment : test-no-lockfile" + pixi info test -f .pixi/env/bin/python - ./pixi/env/bin/python --version | grep -q 3.11 + ./.pixi/env/bin/python --version | grep -q 3.11 From 42d7f814c8cef0c9c5b53a47a7cfe8ff93c21b9b Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 18:01:40 +0200 Subject: [PATCH 19/25] . --- .github/workflows/test.yml | 28 ++++++++++++++-------------- dist/index.js | 2 +- src/options.ts | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4db44423..a4013643 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -89,20 +89,20 @@ jobs: with: log-level: debug - run-shell: - strategy: - matrix: - os: [ubuntu-latest, macos-latest] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - name: Move pixi.toml - run: mv test/default/* . - - uses: ./ - with: - generate-run-shell: true - - run: python --version | grep -q "3.11" - shell: pixi-shell {0} + # run-shell: + # strategy: + # matrix: + # os: [ubuntu-latest, macos-latest] + # runs-on: ${{ matrix.os }} + # steps: + # - uses: actions/checkout@v4 + # - name: Move pixi.toml + # run: mv test/default/* . + # - uses: ./ + # with: + # generate-run-shell: true + # - run: python --version | grep -q "3.11" + # shell: pixi-shell {0} custom-bin-path: runs-on: ubuntu-latest diff --git a/dist/index.js b/dist/index.js index 71d986c5..e94cab2b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61127,7 +61127,7 @@ var getOptions = () => { cache: parseOrUndefinedJSON("cache", booleanType()), cacheKey: parseOrUndefined("cache-key", stringType()), pixiBinPath: parseOrUndefined("micromamba-binary-path", stringType()), - authHost: parseOrUndefined("auth-host", stringType().url()), + authHost: parseOrUndefined("auth-host", stringType()), authToken: parseOrUndefined("auth-token", stringType()), authUsername: parseOrUndefined("auth-username", stringType()), authPassword: parseOrUndefined("auth-password", stringType()), diff --git a/src/options.ts b/src/options.ts index e7fca3fe..c833092d 100644 --- a/src/options.ts +++ b/src/options.ts @@ -178,7 +178,7 @@ const getOptions = () => { cache: parseOrUndefinedJSON('cache', z.boolean()), cacheKey: parseOrUndefined('cache-key', z.string()), pixiBinPath: parseOrUndefined('micromamba-binary-path', z.string()), - authHost: parseOrUndefined('auth-host', z.string().url()), + authHost: parseOrUndefined('auth-host', z.string()), authToken: parseOrUndefined('auth-token', z.string()), authUsername: parseOrUndefined('auth-username', z.string()), authPassword: parseOrUndefined('auth-password', z.string()), From 924bc74e6560e74030dfd55e7435e78d0cb2f77a Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 18:06:14 +0200 Subject: [PATCH 20/25] . --- .github/workflows/test.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a4013643..33957b79 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,17 +20,17 @@ jobs: test -f .pixi/env/bin/python ./.pixi/env/bin/python --version | grep -q 3.11 - # no-run-install-2: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v4 - # - name: Move pixi.toml - # run: mv test/default/* . - # - uses: ./ - # with: - # run-install: false - # - run: | - # pixi install -vv + no-run-install-2: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Move pixi.toml + run: mv test/default/* . + - uses: ./ + with: + run-install: false + - run: | + pixi install --manifest-path pixi.toml no-run-install: runs-on: ubuntu-latest From a24c7c4ec7a04f771f90ac14db24c3144ad14a1f Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 18:06:56 +0200 Subject: [PATCH 21/25] . --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 33957b79..cdae1eee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,7 +30,7 @@ jobs: with: run-install: false - run: | - pixi install --manifest-path pixi.toml + pixi install --manifest-path pixi.toml -v no-run-install: runs-on: ubuntu-latest From 87058e30920b0a780bf12b81e31ab12320c8a533 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 18:14:13 +0200 Subject: [PATCH 22/25] . --- dist/index.js | 5 ++++- src/options.ts | 2 +- src/util.ts | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index e94cab2b..4ca4c782 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61015,6 +61015,9 @@ var execute = (cmd) => { }; var pixiCmd = (command, withManifestPath = true) => { let commandArray = [options.pixiBinPath].concat(command.split(" ")); + if (withManifestPath) { + commandArray = commandArray.concat(["--manifest-path", options.manifestPath]); + } switch (options.logLevel) { case "trace": commandArray = commandArray.concat(["-vvv"]); @@ -61087,7 +61090,7 @@ var validateInputs = (inputs) => { var inferOptions = (inputs) => { const runInstall = inputs.runInstall ?? true; const pixiSource = inputs.pixiVersion ? { version: inputs.pixiVersion } : inputs.pixiUrl ? { url: inputs.pixiUrl } : { version: "latest" }; - const logLevel = inputs.logLevel ?? (core2.isDebug() ? "debug" : "info"); + const logLevel = inputs.logLevel ?? (core2.isDebug() ? "debug" : "warn"); const manifestPath = inputs.manifestPath ?? "pixi.toml"; const pixiLockFile = import_path.default.basename(manifestPath).replace(/\.toml$/, ".lock"); const generateRunShell = inputs.generateRunShell ?? runInstall; diff --git a/src/options.ts b/src/options.ts index c833092d..46e7f200 100644 --- a/src/options.ts +++ b/src/options.ts @@ -128,7 +128,7 @@ const inferOptions = (inputs: Inputs): Options => { : inputs.pixiUrl ? { url: inputs.pixiUrl } : { version: 'latest' } - const logLevel = inputs.logLevel ?? (core.isDebug() ? 'debug' : 'info') + const logLevel = inputs.logLevel ?? (core.isDebug() ? 'debug' : 'warn') const manifestPath = inputs.manifestPath ?? 'pixi.toml' const pixiLockFile = path.basename(manifestPath).replace(/\.toml$/, '.lock') const generateRunShell = inputs.generateRunShell ?? runInstall diff --git a/src/util.ts b/src/util.ts index d1edefdf..aabf3659 100644 --- a/src/util.ts +++ b/src/util.ts @@ -75,9 +75,9 @@ export const execute = (cmd: string[]) => { export const pixiCmd = (command: string, withManifestPath = true) => { let commandArray = [options.pixiBinPath].concat(command.split(' ')) - // if (withManifestPath) { - // commandArray = commandArray.concat(['--manifest-path', options.manifestPath]) - // } + if (withManifestPath) { + commandArray = commandArray.concat(['--manifest-path', options.manifestPath]) + } switch (options.logLevel) { case 'trace': commandArray = commandArray.concat(['-vvv']) From a59123d962954efb76b81da5bc59f0d5e674dcd8 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 18:20:11 +0200 Subject: [PATCH 23/25] . --- .github/workflows/test.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cdae1eee..ee80ae04 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,18 +20,6 @@ jobs: test -f .pixi/env/bin/python ./.pixi/env/bin/python --version | grep -q 3.11 - no-run-install-2: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Move pixi.toml - run: mv test/default/* . - - uses: ./ - with: - run-install: false - - run: | - pixi install --manifest-path pixi.toml -v - no-run-install: runs-on: ubuntu-latest steps: @@ -70,8 +58,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Move pixi.toml - run: mv test/default/* . - uses: ./ with: manifest-path: test/default/pixi.toml From 94e9c51bd1f166bf07ee7a704b5c1f423229cdbd Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 18:25:16 +0200 Subject: [PATCH 24/25] . --- dist/index.js | 2 +- src/options.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4ca4c782..6df5b63c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -61041,7 +61041,7 @@ var pixiCmd = (command, withManifestPath = true) => { var logLevelSchema = enumType(["quiet", "warn", "info", "debug", "trace"]); var postCleanupSchema = enumType(["none", "environment", "all"]); var PATHS = { - pixiBin: import_path.default.join(import_os.default.homedir(), ".pixi", "bin", "pixi"), + pixiBin: import_path.default.join(import_os.default.homedir(), ".pixi", "bin", `pixi${import_os.default.platform() === "win32" ? ".exe" : ""}`), pixiRunShellScript: import_path.default.join(import_os.default.homedir(), ".pixi", "bin", "pixi-shell"), bashProfile: import_path.default.join(import_os.default.homedir(), ".bash_profile"), bashrc: import_path.default.join(import_os.default.homedir(), ".bashrc") diff --git a/src/options.ts b/src/options.ts index 46e7f200..42a2feb3 100644 --- a/src/options.ts +++ b/src/options.ts @@ -65,7 +65,7 @@ const postCleanupSchema = z.enum(['none', 'environment', 'all']) export type PostCleanup = z.infer export const PATHS = { - pixiBin: path.join(os.homedir(), '.pixi', 'bin', 'pixi'), + pixiBin: path.join(os.homedir(), '.pixi', 'bin', `pixi${os.platform() === 'win32' ? '.exe' : ''}`), pixiRunShellScript: path.join(os.homedir(), '.pixi', 'bin', 'pixi-shell'), bashProfile: path.join(os.homedir(), '.bash_profile'), bashrc: path.join(os.homedir(), '.bashrc') From 28c9227cd087547b272af2c2bc77264b591d8d24 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Thu, 7 Sep 2023 18:29:46 +0200 Subject: [PATCH 25/25] not implemented yet --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ee80ae04..9a842a12 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -144,6 +144,8 @@ jobs: auth-conda-token: TODO post-cleanup: + # not implemented yet + if: false name: post-cleanup ${{ matrix.post-cleanup }} runs-on: ubuntu-latest strategy: