Skip to content

Commit

Permalink
Fix github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
codophobia committed Jan 21, 2024
1 parent c53a815 commit 6de44a4
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint-test
name: lint

on: [push, pull_request]

Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Test with pytest
- name: Install dependencies
run: |
pip install pytest
pytest cache
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: pytest cache
- name: Code quality with flake8
run: |
pip install flake8
flake8 cache --exclude gen
run: flake8 cache --exclude gen
- name: Build package
run: |
pip install build
python3 -m build
run: python3 -m build
- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@27.0.3
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Test with pytest
- name: Install dependencies
run: |
pip install pytest
pytest cache
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: pytest cache
35 changes: 35 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,48 @@
astroid==3.0.2
build==1.0.3
certifi==2023.11.17
charset-normalizer==3.3.2
click==8.1.7
dill==0.3.7
distlib==0.3.8
docutils==0.20.1
exceptiongroup==1.2.0
filelock==3.13.1
flake8==7.0.0
idna==3.6
importlib-metadata==7.0.1
iniconfig==2.0.0
isort==5.13.2
jaraco.classes==3.3.0
keyring==24.3.0
markdown-it-py==3.0.0
mccabe==0.7.0
mdurl==0.1.2
more-itertools==10.2.0
mypy==1.8.0
mypy-extensions==1.0.0
nh3==0.2.15
packaging==23.2
pkginfo==1.9.6
platformdirs==4.1.0
pluggy==1.3.0
pycodestyle==2.11.1
pyflakes==3.2.0
Pygments==2.17.2
pylint==3.0.3
pyproject_hooks==1.0.0
pytest==7.4.4
readme-renderer==42.0
requests==2.31.0
requests-toolbelt==1.0.0
rfc3986==2.0.0
rich==13.7.0
six==1.16.0
thrift==0.16.0
tomli==2.0.1
tomlkit==0.12.3
twine==4.0.2
typing_extensions==4.9.0
urllib3==2.1.0
virtualenv==20.25.0
zipp==3.17.0

0 comments on commit 6de44a4

Please sign in to comment.