-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.05 KB
/
testdocs-workflow.yml
File metadata and controls
44 lines (36 loc) · 1.05 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
41
42
43
44
name: Generera Markdown-filer och Git-commits från testfiler
on:
push:
branches:
- '**' # Trigga på alla branches
pull_request:
branches:
- '**' # Trigga på pull requests till alla branches
permissions:
contents: write
actions: write
jobs:
process-test-documents:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Configure Git
run: |
git config --local user.email "bot@selex.se"
git config --local user.name "Selex Bot"
- name: Process test JSON files to Markdown files
run: |
python sfs_processor.py --input data/testdocs/rkrattsbaser --output output/md --formats md,md-markers,git
env:
PYTHONPATH: ${{ github.workspace }}