-
Notifications
You must be signed in to change notification settings - Fork 44
38 lines (36 loc) · 1.16 KB
/
python-syntax-checker.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
name: python-syntax-checker
on:
push:
branches: [ main ]
pull_request_target:
branches: [ main ]
jobs:
python-syntax-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install Packages
run: pip install codespell flake8
- name: Check Spelling
run: codespell --skip="./data"|| true
- name: Check Syntax Error
run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- uses: actions/setup-go@v4
with:
go-version: '1.20.5'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
make
- name: Run unittest
run: |
pytest -m "not local and not singleBugReproduction" --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=acto | tee pytest-coverage.txt
- name: Pytest coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml