File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+ name : builds
5+
6+ on :
7+ push :
8+ # Run when main is updated
9+ branches : [ main ]
10+ pull_request :
11+ # Run on pull requests against main
12+ branches : [ main ]
13+
14+ jobs :
15+ build :
16+ runs-on : ${{ matrix.os }}
17+ strategy :
18+ matrix :
19+ python-version : ['3.11', '3.12', '3.13']
20+ os : [ubuntu-latest]
21+ env :
22+ OS : ${{ matrix.os }}
23+ PYTHON : ${{ matrix.python-version }}
24+
25+ steps :
26+ - uses : actions/checkout@main
27+ - name : Set up Python ${{ matrix.python-version }}
28+ uses : actions/setup-python@main
29+ with :
30+ python-version : ${{ matrix.python-version }}
31+ - name : Install test dependencies
32+ run : |
33+ python -m pip install --upgrade pip
34+ pip install flake8 pytest pytest-cov ipython
35+ - name : Test and generate coverage report
36+ # Run coverage analysis on pytest tests
37+ run : |
38+ pip install .
39+ py.test --cov-report=xml --cov=./
You can’t perform that action at this time.
0 commit comments