forked from prefix-dev/pixi
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (66 loc) · 2.51 KB
/
test_common_wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: "Test common wheel files for installation with pixi"
on:
workflow_call:
inputs:
sha:
type: string
description: "The commit sha"
required: true
arch:
type: string
description: "The architecture of the file to test"
required: true
runs-on:
type: string
description: "The operating system to run the tests on"
required: true
jobs:
test_common_wheels:
name: Test Installation of Common Wheels | ${{ inputs.arch }}
runs-on: ${{ inputs.runs-on }}
env:
TARGET_RELEASE: "${{ github.workspace }}/target/release"
LOGS_DIR: "${{ github.workspace }}/tests/wheel_tests/.logs"
SUMMARY_FILE: "${{ github.workspace }}/tests/wheel_tests/.summary.md"
PYTHONIOENCODING: utf-8
PYTEST_ADDOPTS: "--color=yes"
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
- name: Create Dev Drive using ReFS
if: ${{ contains(inputs.arch, 'windows') }}
run: ${{ github.workspace }}/.github/workflows/setup-dev-drive.ps1
- name: Copy Git Repo to Dev Drive
if: ${{ contains(inputs.arch, 'windows') }}
run: |
Copy-Item -Path "${{ github.workspace }}" -Destination "${{ env.PIXI_WORKSPACE }}" -Recurse
- name: Download binary from build
uses: actions/download-artifact@v4
with:
name: pixi-${{ inputs.arch }}-${{ inputs.sha }}
path: ${{ env.TARGET_RELEASE }}
- name: "Prepare binary"
if: ${{ !contains(inputs.arch, 'windows') }}
run: chmod +x ${{ env.TARGET_RELEASE }}/*
- name: Test common wheels
run: ${{ env.TARGET_RELEASE }}/pixi run --locked test-common-wheels-ci --pixi-exec ${{ env.TARGET_RELEASE }}/pixi
- name: Write .summary.md to Github Summary
if: ${{ !contains(inputs.arch, 'windows') && always() }}
shell: bash
run: |
cat ${{ env.SUMMARY_FILE }} >> $GITHUB_STEP_SUMMARY
- name: Write .summary.md to GitHub Summary (Windows)
if: ${{ contains(inputs.arch, 'windows') && always() }}
shell: pwsh
run: |
$resolvedPath = Resolve-Path $env:SUMMARY_FILE
Get-Content $resolvedPath | Out-File -Append -FilePath $env:GITHUB_STEP_SUMMARY
- name: Upload Logs
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: wheel-tests-logs-${{ inputs.arch }}
include-hidden-files: true
path: ${{ env.LOGS_DIR }}