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,087 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_linux
description: rr_python_dist_test_linux
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: bash
    run: |
      pattern=${{ inputs.wheel_filename }}
      file=$(find . -iname "$pattern" | head -n 1)
      if [[ ! -f "$file" ]]; then
        echo "Wheel file not found"
        exit 1
      fi
      echo "WHEEL_FILENAME=$file" >> $GITHUB_ENV

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