Skip to content

Commit 94cc619

Browse files
Update remaining actions to use poetry
1 parent 1ccf9fa commit 94cc619

3 files changed

Lines changed: 11 additions & 24 deletions

File tree

.github/workflows/lint-library-generator.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,15 @@ jobs:
4545
uses: actions/setup-python@v4
4646
with:
4747
python-version: ${{ matrix.python-version }}
48-
- name: Set up pipenv
49-
uses: actions/cache@v4
50-
with:
51-
path: ~/.local/share/virtualenvs
52-
key: ${{ runner.os }}-pipenv-${{ hashfiles('**/Pipfile.lock') }}
53-
restore-keys: |
54-
${{ runner.os }}-pipenv-
5548
- name: Install dependencies
5649
run: |
5750
python -m pip install --upgrade pip
58-
python -m pip install pipenv
59-
pipenv install --python ${{ matrix.python-version }}
60-
pipenv install flake8 pytest
51+
pip install poetry
52+
poetry install --no-root
53+
poetry add flake8
6154
- name: Lint with flake8
6255
run: |
6356
# stop the build if there are Python syntax errors or undefined names
64-
pipenv run flake8 ./generator/generate_library.py --count --select=E9,F63,F7,F82 --ignore=F405,W391,W291,C901,E501,E303,W293 --show-source --statistics
57+
poetry run flake8 ./generator/generate_library.py --count --select=E9,F63,F7,F82 --ignore=F405,W391,W291,C901,E501,E303,W293 --show-source --statistics
6558
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
66-
pipenv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
59+
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

.github/workflows/publish-release.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,16 @@ jobs:
1414
uses: actions/setup-python@v4
1515
with:
1616
python-version: "3.10"
17-
- name: Set up pipenv
18-
uses: actions/cache@v4
19-
with:
20-
path: ~/.local/share/virtualenvs
21-
key: ${{ runner.os }}-pipenv-${{ hashfiles('**/Pipfile.lock') }}
22-
restore-keys: |
23-
${{ runner.os }}-pipenv-
2417
- name: Install dependencies
2518
run: |
2619
python -m pip install --upgrade pip
27-
pip install pipenv
28-
pipenv install build
29-
pipenv install wheel
20+
pip install poetry
21+
poetry install --no-root
22+
poetry add build
23+
poetry add wheel
3024
- name: Build a binary wheel and a source tarball
3125
run: |
32-
pipenv run python setup.py sdist bdist_wheel
26+
poetry run python setup.py sdist bdist_wheel
3327
- name: Publish distribution to PyPI
3428
uses: pypa/gh-action-pypi-publish@release/v1
3529
with:

.github/workflows/test-library.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
steps:
4545
- uses: actions/checkout@v4
4646
- name: Set up Python ${{ matrix.python-version }}
47-
uses: actions/setup-python@v3
47+
uses: actions/setup-python@v4
4848
with:
4949
python-version: ${{ matrix.python-version }}
5050
- name: Install dependencies

0 commit comments

Comments
 (0)