-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 924 Bytes
/
test.yml
File metadata and controls
41 lines (34 loc) · 924 Bytes
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
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
# For SonarCloud Analysis
# Shallow clones should be disabled for a better relevancy of analysis
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv==2022.6.7
- name: Install requirements
run: pipenv install --dev
- name: Tests
run: pipenv run tests
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v7
with:
args: >
-Dsonar.projectVersion=${{ github.sha }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}