Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/integration test main #812

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e47f285
initial addition of integration test
ruben-arts Feb 13, 2024
649e04d
debug
ruben-arts Feb 13, 2024
4be14f7
add path to artifact download
ruben-arts Feb 13, 2024
c0afd3f
add name to bin
ruben-arts Feb 13, 2024
c356803
symlink binary
ruben-arts Feb 13, 2024
1efb582
run actual pixi stuff
ruben-arts Feb 13, 2024
c133203
Use pixi as bin name and add to path
ruben-arts Feb 13, 2024
78fb43d
Use GITHUB_PATH
ruben-arts Feb 13, 2024
8cc3703
typo
ruben-arts Feb 13, 2024
c2de7ad
add exe name
ruben-arts Feb 13, 2024
8306d62
typo
ruben-arts Feb 13, 2024
79c2962
use path in next action
ruben-arts Feb 13, 2024
5ff4087
only add dir to path
ruben-arts Feb 14, 2024
ccd35f4
add more debug
ruben-arts Feb 14, 2024
ae742cd
add even more debug
ruben-arts Feb 14, 2024
ceafd4f
do the checkout before artifact download
ruben-arts Feb 14, 2024
77f2870
Merge branch 'main' into ci/integration_tests
ruben-arts Feb 14, 2024
0a5c671
test polarify and pypi
ruben-arts Feb 14, 2024
036311e
test windows
ruben-arts Feb 14, 2024
79b6596
add missing $
ruben-arts Feb 14, 2024
9d29695
dont run unix stuff on win
ruben-arts Feb 14, 2024
4c18df4
use pwsh on windows
ruben-arts Feb 14, 2024
9e9372d
remove some debug stuff and make polarify windows compatible
ruben-arts Feb 14, 2024
406bd8b
add verbose to the pixi commands
ruben-arts Feb 14, 2024
a6f33d1
test on multiple systems at once
ruben-arts Feb 14, 2024
41dcbb9
use D drive
ruben-arts Feb 14, 2024
cf2b70c
remove tree
ruben-arts Feb 14, 2024
b59cdc1
use m chip
ruben-arts Feb 14, 2024
4404c26
only run win on win
ruben-arts Feb 14, 2024
03462ad
ignore arm linux
ruben-arts Feb 15, 2024
08222e0
Add more tests
ruben-arts Feb 15, 2024
ad52401
fix test solve groups
ruben-arts Feb 15, 2024
23489da
skip pypi example on windows
ruben-arts Feb 15, 2024
64250cc
shush the credential store warning
ruben-arts Feb 15, 2024
287e490
turn tests back on
ruben-arts Feb 15, 2024
780dbf1
Turn off warnings
ruben-arts Feb 15, 2024
5273f73
ci: test with rip main
tdejager Feb 15, 2024
496e2e3
feat: new cargo lock
tdejager Feb 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,3 +342,67 @@ jobs:
target/wix/pixi-${{ matrix.target }}.msi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test-examples:
name: Integration test ${{ matrix.name }}
runs-on: ${{ matrix.os }}
needs: build
strategy:
fail-fast: false
matrix:
include:
- { name: "Linux-x86_64", target: x86_64-unknown-linux-musl, os: ubuntu-20.04 }
# - { name: "Linux-aarch64", target: aarch64-unknown-linux-musl, os: ubuntu-latest } Doesn't work yet

- { name: "macOS-x86_64", target: x86_64-apple-darwin, os: macOS-latest }
- { name: "macOS-aarch64", target: aarch64-apple-darwin, os: macOS-14 } # macOS-14 is the ARM chipset

- { name: "Windows-x86_64", target: x86_64-pc-windows-msvc, os: windows-latest , extension: .exe}
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: Download binary from build
uses: actions/download-artifact@v4
with:
name: pixi-${{ matrix.target }}${{ matrix.extension }}
path: pixi_bin
- name: Debug
run: |
pwd
- name: Setup unix binary, add to github path
if: matrix.os != 'windows-latest'
run: |
mv pixi_bin/pixi-${{ matrix.target }} pixi_bin/pixi
chmod a+x pixi_bin/pixi
echo "$(pwd)/pixi_bin" >> $GITHUB_PATH
- name: Create Directory and Move Executable
if: matrix.os == 'windows-latest' && matrix.target == 'x86_64-pc-windows-msvc'
run: |
New-Item -ItemType Directory -Force -Path "D:\.pixi"
Move-Item -Path "pixi_bin/pixi-${{ matrix.target }}${{ matrix.extension }}" -Destination "D:\.pixi\pixi.exe"
shell: pwsh
- name: Add to PATH
if: matrix.os == 'windows-latest' && matrix.target == 'x86_64-pc-windows-msvc'
run: echo "D:\.pixi" | Out-File -Append -Encoding utf8 -FilePath $env:GITHUB_PATH
shell: pwsh
- name: Verify and Use Executable
if: matrix.os == 'windows-latest' && matrix.target == 'x86_64-pc-windows-msvc'
run: |
echo "Current PATH: $env:PATH"
pixi --version
shell: pwsh
- name: Help
run: pixi --help
- name: Info
run: pixi info
- name: Install pixi
run: pixi install -v
- name: Test examples/polarify
run: pixi run -v --manifest-path examples/polarify/pixi.toml test
- name: Test examples/pypi
# Skip windows until this error is solved: `× could not get artifact: Access is denied. (os error 5)`
# if: matrix.os != 'windows-latest'
run: pixi run -v --manifest-path examples/pypi/pixi.toml test
- name: Test examples/solve-groups
run: |
pixi run -v --manifest-path examples/solve-groups/pixi.toml -e min-py38 test
pixi run -v --manifest-path examples/solve-groups/pixi.toml -e max-py310 test
Loading
Loading