Skip to content

Commit 00ebb4c

Browse files
authored
Use poetry 1.2.2 (#65)
1 parent d669e82 commit 00ebb4c

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/main.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,40 @@ jobs:
3232
- name: Checkout the code
3333
uses: actions/checkout@v2
3434

35+
- name: Install poetry
36+
uses: abatilo/[email protected]
37+
with:
38+
poetry-version: 1.2.2
39+
3540
- name: Set up Python ${{ matrix.python-version }}
36-
uses: actions/setup-python@v2
41+
id: setup_python
42+
uses: actions/setup-python@v4
3743
with:
3844
python-version: ${{ matrix.python-version }}
45+
cache: poetry
3946

40-
- name: Install tox dependencies
41-
run: pip install tox poetry
47+
- name: Install tox
48+
run: pip install tox
4249

4350
- name: Install CockroachDB
4451
uses: ./.github/actions/setup-cockroachdb
4552

4653
# Run all of the tests
4754
- name: Flake8 - Style guide enforcement
4855
run: tox -e flake8
49-
if: ${{ matrix.python-version == 3.9 }}
56+
if: ${{ matrix.python-version == 3.9 }}
5057

5158
- name: Black - Format check
5259
run: tox -e black-check
53-
if: ${{ matrix.python-version == 3.9 }}
60+
if: ${{ matrix.python-version == 3.9 }}
5461

5562
- name: Isort - Import format check
5663
run: tox -e isort-check
5764
if: ${{ matrix.python-version == 3.9 }}
5865

5966
- name: Safety - Python dependency vulnerability check
6067
run: tox -e safety
61-
if: ${{ matrix.python-version == 3.9 }}
68+
if: ${{ matrix.python-version == 3.9 }}
6269

6370
- name: Set env
6471
id: vars

poetry.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[virtualenvs]
2+
create = true
3+
in-project = true

0 commit comments

Comments
 (0)