File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ name : Zenlib Tests
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ python-version : ["3.11", "3.12"]
19+
20+ steps :
21+ - uses : actions/checkout@v4
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v3
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+
27+ - name : Install python deps
28+ run : |
29+ python -m venv venv
30+ venv/bin/pip install --upgrade pip
31+ venv/bin/pip install .
32+ - name : Test with pytest
33+ run : |
34+ cd tests
35+ ../venv/bin/python -m unittest -v
You can’t perform that action at this time.
0 commit comments