Skip to content

Commit

Permalink
ci: use pypy 3.6, add testpath for pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcgrath13 committed Mar 24, 2021
1 parent c8a4a16 commit 325245c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Set up Python for testing
uses: actions/setup-python@v2
with:
python-version: pypy-3.7
python-version: pypy-3.6
- name: Set up Poetry for testing
run: |
pip install poetry
Expand All @@ -52,7 +52,7 @@ jobs:
uses: actions/cache@v2
with:
path: .venv
key: venv-pypy3.7-${{ hashFiles('**/poetry.lock') }}
key: venv-pypy3.6-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
- name: Unit Test with pytest
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Set up Python for testing
uses: actions/setup-python@v2
with:
python-version: pypy-3.7
python-version: pypy-3.6
- name: Set up Poetry for testing
run: |
pip install poetry
Expand All @@ -80,7 +80,7 @@ jobs:
uses: actions/cache@v2
with:
path: .venv
key: venv-pypy3.7-${{ hashFiles('**/poetry.lock') }}
key: venv-pypy3.6-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
- name: Integration Test with pytest
Expand All @@ -99,7 +99,7 @@ jobs:
- name: Set up Python for testing
uses: actions/setup-python@v2
with:
python-version: pypy-3.7
python-version: pypy-3.6
- name: Set up Poetry for testing
run: |
pip install poetry
Expand All @@ -108,7 +108,7 @@ jobs:
uses: actions/cache@v2
with:
path: .venv
key: venv-pypy3.7-${{ hashFiles('**/poetry.lock') }}
key: venv-pypy3.6-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
- name: Integration Test with pytest
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pytest = "^6.2"
pytest-cov = "^2.8"

[tool.poetry.extras]
linting = ["black", "flake8", "mypy"]
linting = ["black", "flake8", "mypy"] # doesn't work on pypy
docs = ["mkdocs", "mkdocs-material", "mkdocstrings"]

[tool.poetry.scripts]
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ markers =
integration_deterministic: integration tests that always pass
integration_stochastic: integration tests that sometimes fail due to randomness
unit: unit tests
testpaths = tests

0 comments on commit 325245c

Please sign in to comment.