File tree Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Expand file tree Collapse file tree 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
jobs :
9
- lint_check :
10
- name : Python ${{ matrix.python_version }} lint test
9
+ pytest_check :
10
+ name : Python ${{ matrix.python_version }} pytest test
11
11
runs-on : ubuntu-latest
12
12
strategy :
13
13
matrix :
14
14
python_version : ["3.9"]
15
15
steps :
16
+ - name : Set up Python ${{ matrix.python_version }}
17
+ uses : actions/setup-python@v4
18
+ with :
19
+ python-version : ${{ matrix.python_version }}
16
20
- name : Checkout repository
17
21
uses : actions/checkout@v3
18
22
with :
19
23
ref : ${{ github.event.pull_request.head.ref }}
20
24
repository : ${{ github.event.pull_request.head.repo.full_name }}
21
- - name : Set up python ${{ matrix.python_version }}
22
- uses : actions/setup-python@v4
23
- with :
24
- python-version : ${{ matrix.python_version }}
25
- cache : ' pip'
26
- cache-dependency-path : ' pyproject.toml'
27
- - uses : actions/cache@v3
28
- id : cache
29
- with :
30
- path : ${{ env.pythonLocation }}
31
- key : ${{ matrix.python_version }}-lint-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }}-v01
32
- - name : Install checkmate with test requirements (not using cache)
33
- if : steps.cache.outputs.cache-hit != 'true'
25
+ fetch-depth : 2
26
+ - name : Installing Dependencies
34
27
run : |
35
- python -m pip install -e .[test]
28
+ pip install virtualenv
29
+ virtualenv test_python -q
30
+ source test_python/bin/activate
31
+ make installdeps
32
+ make installdeps-test
33
+ pip freeze
36
34
- name : Run Pytest
37
35
run : make test
You can’t perform that action at this time.
0 commit comments