-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (44 loc) · 1.48 KB
/
build.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
49
50
51
52
53
54
name: Build
on:
push:
tags:
- '*'
jobs:
test:
name: Test on Python ${{ matrix.python-version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.9', '3.10' ]
os: [ windows-latest ]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Set up Go (needed for ghr)
uses: actions/setup-go@v3
with:
go-version: 1.21.0
- name: Install ghr (needed to publish releases)
run: |
go install github.com/tcnksm/ghr@latest
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Python packages
run: |
python -m pip install --upgrade pip
python -m pip install -r ./src/requirements.txt
python -m pip install -r ./src/SEBASTiAn/excelify/requirements.txt
- name: Run tests
run: |
pytest --verbose --cov=./ --cov-report xml
- name: Generate excel file with the details of the vulnerabilities
run: |
cd ./src/
python -m SEBASTiAn.excelify.excelify
- name: Update the latest release
run: |
ghr -t ${{ secrets.GITHUB_TOKEN }} -b "${{ github.event.head_commit.message }}" -recreate documentation-latest ./src/SEBASTiAn/excelify/xlsx/