Skip to content

Commit a9d61c9

Browse files
committed
activate github action test
1 parent c6116f5 commit a9d61c9

File tree

1 file changed

+110
-0
lines changed

1 file changed

+110
-0
lines changed

.github/workflows/Cuda_pytest.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
name: Pyccel CUDA tests
2+
3+
on:
4+
pull_request:
5+
branches: [ cuda_main ]
6+
7+
jobs:
8+
Linux:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python 3.7
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: 3.7
18+
- name: Install dependencies
19+
uses: ./.github/actions/linux_install
20+
- name: Install python dependencies
21+
uses: ./.github/actions/pip_installation
22+
- name: Coverage install
23+
uses: ./.github/actions/coverage_install
24+
- name: Fortran/C tests with pytest
25+
uses: ./.github/actions/pytest_run
26+
- name: Python tests with pytest
27+
uses: ./.github/actions/pytest_run_python
28+
- name: Parallel tests with pytest
29+
uses: ./.github/actions/pytest_parallel
30+
- name: Test with valgrind for memory leaks
31+
uses: ./.github/actions/valgrind_run
32+
- name: Collect coverage information
33+
continue-on-error: True
34+
uses: ./.github/actions/coverage_collection
35+
- name: Run codacy-coverage-reporter
36+
uses: codacy/codacy-coverage-reporter-action@master
37+
continue-on-error: True
38+
with:
39+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
40+
coverage-reports: cobertura.xml
41+
42+
Windows:
43+
44+
runs-on: windows-latest
45+
46+
steps:
47+
- uses: actions/checkout@v2
48+
- name: Setup Python 3.9
49+
uses: actions/setup-python@v3
50+
with:
51+
# The second most recent version is used as
52+
# setup-python installs the most recent patch
53+
# which leads to linking problems as there are
54+
# 2 versions of python3X.a and the wrong one
55+
# is chosen
56+
python-version: 3.9
57+
# Uncomment to examine DLL requirements with 'objdump -x FILE'
58+
#- name: Install mingw tools
59+
# uses: msys2/setup-msys2@v2
60+
- name: Install dependencies
61+
uses: ./.github/actions/windows_install
62+
- name: Install python dependencies
63+
uses: ./.github/actions/pip_installation
64+
- name: Fortran/C tests with pytest
65+
uses: ./.github/actions/pytest_run
66+
- name: Python tests with pytest
67+
uses: ./.github/actions/pytest_run_python
68+
- name: Parallel tests with pytest
69+
uses: ./.github/actions/pytest_parallel
70+
71+
MacOSX:
72+
73+
runs-on: macos-latest
74+
75+
steps:
76+
- uses: actions/checkout@v2
77+
- name: Set up Python 3.10
78+
uses: actions/setup-python@v3
79+
with:
80+
python-version: '3.10'
81+
- name: Install dependencies
82+
uses: ./.github/actions/macos_install
83+
- name: Install python dependencies
84+
uses: ./.github/actions/pip_installation
85+
- name: Fortran/C tests with pytest
86+
uses: ./.github/actions/pytest_run
87+
- name: Python tests with pytest
88+
uses: ./.github/actions/pytest_run_python
89+
- name: Parallel tests with pytest
90+
uses: ./.github/actions/pytest_parallel
91+
92+
Linter:
93+
94+
runs-on: ubuntu-latest
95+
96+
steps:
97+
- uses: actions/checkout@v2
98+
- name: Set up Python 3.7
99+
uses: actions/setup-python@v3
100+
with:
101+
python-version: 3.7
102+
- name: Install python dependencies
103+
run: |
104+
python -m pip install --upgrade pip
105+
python -m pip install pylint
106+
shell: bash
107+
- name: Pylint
108+
run: |
109+
python -m pylint --rcfile=.pylintrc pyccel/parser/semantic.py
110+
shell: bash

0 commit comments

Comments
 (0)