Skip to content

Commit ca6c349

Browse files
committed
fix Github actions
1 parent a73a070 commit ca6c349

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

.github/workflows/ci.yml

+17-18
Original file line numberDiff line numberDiff line change
@@ -6,54 +6,53 @@ jobs:
66
test:
77
strategy:
88
matrix:
9-
python-version: [ "3.7","3.8","3.9","3.10" ]
9+
python-version: [ "3.7","3.8","3.9","3.10", "3.11" ]
1010
runs-on: ubuntu-latest
1111
steps:
1212
#----------------------------------------------
1313
# check-out repo and set-up python
1414
#----------------------------------------------
1515
- name: Check out repository
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717
- name: Set up python v ${{ matrix.python-version }}
1818
id: setup-python
19-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v4
2020
with:
2121
python-version: ${{ matrix.python-version }}
22-
#----------------------------------------------
23-
# ----- install & configure poetry -----
24-
#----------------------------------------------
25-
- name: Install Poetry
26-
uses: snok/install-poetry@v1
27-
with:
28-
virtualenvs-create: true
29-
virtualenvs-in-project: true
30-
installer-parallel: true
22+
23+
- name: Install poetry
24+
run: |
25+
python -m pip install poetry
26+
27+
- name: Configure poetry
28+
run: |
29+
python -m poetry config virtualenvs.in-project true
3130
3231
#----------------------------------------------
3332
# load cached venv if cache exists
3433
#----------------------------------------------
3534
- name: Load cached venv
3635
id: cached-poetry-dependencies
37-
uses: actions/cache@v2
36+
uses: actions/cache@v3
3837
with:
3938
path: .venv
4039
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
4140
#----------------------------------------------
4241
# install dependencies if cache does not exist
4342
#----------------------------------------------
4443
- name: Install dependencies
45-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
46-
run: poetry install --no-interaction --no-root
44+
run: |
45+
python -m poetry install --no-interaction --no-root
46+
4747
#----------------------------------------------
4848
# install your root project, if required
4949
#----------------------------------------------
5050
- name: Install library
5151
run: poetry install --no-interaction
52+
5253
#----------------------------------------------
5354
# run test suite
5455
#----------------------------------------------
5556
- name: Run tests
5657
run: |
57-
source .venv/bin/activate
58-
pytest faker_biology/tests/
59-
#coverage report
58+
python -m poetry run python -m pytest -sxv faker_biology/tests

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "faker-biology"
3-
version = "0.6.1"
3+
version = "0.6.2"
44
description = "Fake data from biology"
55
authors = ["Richard Adams <ra22597@gmail.com>"]
66
license = "Apache 2"

0 commit comments

Comments
 (0)