update docs #225
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
#---------------------------------------------- | |
# check-out repo and set-up python | |
#---------------------------------------------- | |
jobs: | |
sonarcloud: | |
name: SonarCloud | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
#---------------------------------------------- | |
# install your root project, if required | |
#---------------------------------------------- | |
- name: Install myfempy | |
run: pip install . | |
#---------------------------------------------- | |
# run lint and test suite | |
#---------------------------------------------- | |
- name: Run lint | |
run: make lint | |
- name: Run tests | |
run: make test | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: code-coverage | |
path: htmlcov | |
continue-on-error: true | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: code-coverage | |
path: htmlcov | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |