-
Notifications
You must be signed in to change notification settings - Fork 55
92 lines (87 loc) · 3.06 KB
/
pickle_wheel.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Wheel-pickled-installation
on:
workflow_dispatch:
inputs:
python_version:
required: true
type: string
ref:
required: false
type: string
check_run_id:
required: false
type: string
pr_repo:
required: false
type: string
push:
branches: devel
env:
COMMIT: ${{ inputs.ref || github.event.ref }}
PEM: ${{ secrets.BOT_PEM }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_CHECK_RUN_ID: ${{ inputs.check_run_id }}
PR_REPO: ${{ inputs.pr_repo || github.repository }}
jobs:
Python_version_picker:
runs-on: ubuntu-latest
if: github.event_name != 'push' || github.repository == 'pyccel/pyccel'
outputs:
python_version: ${{ steps.set-python_version.outputs.python_version }}
steps:
- if: github.event_name == 'push'
run: |
echo "version=3.9" >> $GITHUB_ENV
shell: bash
- id: dispatch-matrix
if: github.event_name == 'workflow_dispatch'
run: |
echo "version=${{ inputs.python_version }}" >> $GITHUB_ENV
shell: bash
- id: set-python_version
run: |
echo "python_version=$version" >> $GITHUB_OUTPUT
shell: bash
Wheel-pickled-installation:
runs-on: ubuntu-latest
name: Deploy tests
needs: Python_version_picker
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.COMMIT }}
repository: ${{ env.PR_REPO }}
submodules: true
- name: Set up Python ${{ needs.Python_version_picker.outputs.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ needs.Python_version_picker.outputs.python_version }}
- name: "Setup"
id: token
run: |
pip install jwt requests
python ci_tools/setup_check_run.py pickle_wheel
- name: Install dependencies
uses: ./.github/actions/linux_install
- name: Install Pyccel from wheel
id: pickle
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade build
python -m build
python -m pip install dist/*.whl
shell: bash
- name: Check for existence of pickled files
id: pickle_check
uses: ./.github/actions/check_for_pickled
- name: Check for STC installation
id: stc_check
uses: ./.github/actions/check_for_stc
- name: Check for gFTL installation
id: gFTL_check
uses: ./.github/actions/check_for_gftl
- name: "Post completed"
if: always()
run: |
python ci_tools/basic_json_check_output.py --statuses ${{ steps.pickle.outcome }} ${{ steps.pickle_check.outcome }} ${{ steps.stc_check.outcome }} ${{ steps.gFTL_check.outcome}} --reasons "Installation failed." "Pickled files were not found in installaion." "STC was not found during installation." "gFTL was not found during installation."
python ci_tools/complete_check_run.py ${{ steps.pickle.outcome }} ${{ steps.pickle_check.outcome }} ${{ steps.stc_check.outcome }} ${{ steps.gFTL_check.outcome}}