File tree Expand file tree Collapse file tree 3 files changed +316
-3
lines changed Expand file tree Collapse file tree 3 files changed +316
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Run tests
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+
7
+ jobs :
8
+ tests :
9
+ strategy :
10
+ fail-fast : false
11
+ matrix :
12
+ python-version : ["3.10", "3.11", "3.12"]
13
+ runs-on : ubuntu-22.04
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - uses : actions/setup-python@v4
17
+ with :
18
+ python-version : ${{ matrix.python-version }}
19
+ - name : Install Poetry
20
+ uses : abatilo/actions-poetry@v2
21
+ - name : Setup a local virtual environment
22
+ run : |
23
+ poetry config virtualenvs.create true --local
24
+ poetry config virtualenvs.in-project true --local
25
+ - uses : actions/cache@v3
26
+ name : Define a cache for the virtual environment based on the dependencies lock file
27
+ with :
28
+ path : ./.venv
29
+ key : venv-${{ hashFiles('poetry.lock') }}
30
+ - name : Install dependencies
31
+ run : poetry install
32
+ - name : Run tests
33
+ run : poetry run pytest
Original file line number Diff line number Diff line change @@ -159,6 +159,4 @@ cython_debug/
159
159
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160
160
# and can be added to the global gitignore or merged into this file. For a more nuclear
161
161
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162
- # .idea/
163
-
164
- poetry.lock
162
+ # .idea/
You can’t perform that action at this time.
0 commit comments