-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.6 KB
/
pipeline.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
name: Pipeline
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
jobs:
Analysis:
runs-on: ubuntu-latest
steps:
#----------------------------------------------
# install your root project, if required
#----------------------------------------------
- name: Copy files to repo
uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Install python
uses: actions/setup-python@v3
with:
python-version: '3.7'
- name: Install myfempy
run: make install
#----------------------------------------------
# run lint and test suite
#----------------------------------------------
# - name: Run lint
# run: make lint
# - name: Run tests
# run: make test
#----------------------------------------------
# SonarCloud Coverage
#----------------------------------------------
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@de2e56b42aa84d0b1c5b622644ac17e505c9a049
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret)