File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : autopep8 Check
2+
3+ on : [pull_request]
4+
5+ jobs :
6+ autopep8-check :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v4
10+
11+ - name : Set up Python
12+ uses : actions/setup-python@v5
13+ with :
14+ python-version : " 3.10"
15+
16+ - name : Install autopep8
17+ run : pip install autopep8
18+
19+ - name : Check formatting with autopep8
20+ id : check
21+ run : |
22+ # Check if autopep8 would make changes
23+ formatting_issues=$(autopep8 --diff --recursive .)
24+ if [[ formatting_issues ]] then
25+ echo "Formatting issues found:"
26+ printf "%s\n" "$formatting_issues"
27+ echo "------------------------------"
28+ echo "-- Formatting issues found! --"
29+ echo "------------------------------"
30+ exit 1
31+ else
32+ echo "No formatting issues found."
33+ fi
34+
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Run Acceptance and Unit tests
5+
6+ on :
7+ # push:
8+ # branches: [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ permissions :
13+ contents : read
14+
15+ jobs :
16+ build :
17+
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - uses : actions/checkout@v4
22+ - name : Set up Python
23+ uses : actions/setup-python@v3
24+ with :
25+ python-version : " 3.10"
26+ - name : Install dependencies
27+ run : |
28+ python -m pip install --upgrade pip # upgrade pip to latest version
29+ pip install ".[visualization]" # install PyProject.toml dependencies (including optional dependencies)
30+ - name : Test with pytest
31+ run : |
32+ python run_tests.py
33+ #pytest # test unit tests only
34+
You can’t perform that action at this time.
0 commit comments