-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.22 KB
/
bigboat-python-api.yml
File metadata and controls
40 lines (40 loc) · 1.22 KB
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
name: grip-on-software/bigboat-python-api
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4.1.4
with:
fetch-depth: 0
- uses: actions/setup-python@v5.1.0
with:
python-version: "${{ matrix.python }}"
- name: Install dependencies
run: |
make setup_test
pip install coveralls
- name: Unit test and coverage
run: make coverage
- name: Adjust source paths in coverage for Sonar
run: sed -i "s/<source>\/home\/runner\/work\/bigboat-python-api\/bigboat-python-api<\/source>/<source>\/github\/workspace<\/source>/g" /home/runner/work/bigboat-python-api/bigboat-python-api/coverage.xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v2.1.1
env:
SONAR_TOKEN: "${{ secrets.SONAR_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- run: coveralls
if: "${{ success() }}"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
strategy:
matrix:
python:
- '3.8.18'
- '3.12.3'