File: action.yml

package info (click to toggle)
robotraconteur 1.2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 101,380 kB
  • sloc: cpp: 1,149,268; cs: 87,653; java: 58,127; python: 26,897; ansic: 356; sh: 152; makefile: 90; xml: 51
file content (43 lines) | stat: -rw-r--r-- 1,149 bytes parent folder | download
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
name: rr_python_dist_test_win
description: rr_python_dist_test_win
inputs:
  python_version:
    description: python_version
    required: true
  arch:
    description: arch
    required: true
  wheel_filename:
    description: wheel_filename
    required: true

runs:
  using: "composite"
  steps:
  - uses: actions/setup-python@v5
    id: python3
    with:
      python-version: '${{ inputs.python_version }}'
      architecture: ${{ inputs.arch }}
  - name: Find Wheel File
    working-directory: artifacts/distfiles
    shell: powershell
    run: |
      $pattern = "${{ inputs.wheel_filename }}"
      $file = Get-ChildItem $pattern | Select-Object -First 1
      if ($null -eq $file) {
        Write-Error "Wheel file not found"
        exit 1
      }
      echo "WHEEL_FILENAME=$file" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

  - name: pip3
    working-directory: artifacts/distfiles
    run: |
      python -m pip install ${{ env.WHEEL_FILENAME }}
    shell: cmd
  - name: test
    working-directory: ${{ github.workspace }}/robotraconteur/test/dist/python
    run: |
      python python_distfiles_test.py
    shell: cmd