Skip to content

Commit 5d4f029

Browse files
author
Nabil Fayak
committed
pytest workflow update
1 parent f84a5e9 commit 5d4f029

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.github/workflows/pytest.yaml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,30 @@ on:
66
branches:
77
- main
88
jobs:
9-
lint_check:
10-
name: Python ${{ matrix.python_version }} lint test
9+
pytest_check:
10+
name: Python ${{ matrix.python_version }} pytest test
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
1414
python_version: ["3.9"]
1515
steps:
16+
- name: Set up Python ${{ matrix.python_version }}
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python_version }}
1620
- name: Checkout repository
1721
uses: actions/checkout@v3
1822
with:
1923
ref: ${{ github.event.pull_request.head.ref }}
2024
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
3427
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
3634
- name: Run Pytest
3735
run: make test

0 commit comments

Comments
 (0)