forked from pyccel/psydac
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (56 loc) · 2.08 KB
/
compile-with-pyccel-devel.yml
File metadata and controls
67 lines (56 loc) · 2.08 KB
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
name: Compile psydac w. pyccel devel
on:
pull_request:
branches: [devel-tiny]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
compile-with-pyccel-devel:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
# TODO: Make sure that struphy works with python > 3.11, keep the lower bound to 3.10
python-version: [ '3.10', '3.12', '3.13' ]
compile_language: ['c', 'fortran']
isMerge:
- ${{ github.event_name == 'push' && github.ref == 'refs/heads/devel' }}
# exclude:
# - { isMerge: false, python-version: '3.10' }
# - { isMerge: false, python-version: '3.11' }
# include:
# - os: macos-14
# python-version: '3.10'
# - os: macos-14
# python-version: '3.13'
name: Compile psydac w. pyccel devel on ${{ matrix.os }} / Python ${{ matrix.python-version }} / ${{ matrix.compile_language }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install prerequisites
uses: ./.github/actions/install/psydac-req
- name: Install project
run: |
python -m pip install ".[test]" --no-cache-dir
python -m pip freeze
- name: Set up environment variables
run: |
echo "PSYDAC_DIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV
echo "PYCCEL_DIR=$GITHUB_WORKSPACE/pyccel" >> $GITHUB_ENV
- name: Clone pyccel from Github (devel branch)
run: |
git clone --recurse-submodules https://github.com/pyccel/pyccel.git $PYCCEL_DIR
- name: Install pyccel
working-directory: ${{ env.PYCCEL_DIR }}
run: |
echo "Pyccel location for this branch"
pip show pyccel
pip uninstall pyccel -y
python -m pip install ".[test]" --no-cache-dir
echo "Pyccel location after reinstalling"
pip show pyccel
- name: Compile psydac kernels
run: |
psydac-accelerate --language ${{ matrix.compile_language }}