update v0.2.0 --> v0.2.1 #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |