-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from Diapolo10/nightly
Version 0.2
- Loading branch information
Showing
16 changed files
with
1,071 additions
and
710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ name: Flake8 | |
on: [ push, pull_request ] | ||
|
||
jobs: | ||
lint: | ||
flake8: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
@@ -16,15 +16,15 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
uses: Gr1N/setup-poetry@v4 | ||
|
||
- name: Install library and dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
poetry install | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,26 +5,26 @@ name: Pylint | |
on: [ push, pull_request ] | ||
|
||
jobs: | ||
lint: | ||
pylint: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Poetry | ||
uses: Gr1N/setup-poetry@v4 | ||
|
||
- name: Install library and dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
poetry install | ||
- name: Analysing the code with pylint | ||
run: | | ||
poetry run python -m pylint iplib3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# This workflow will install Python dependencies, | ||
# run tests with a variety of Python versions, | ||
# and upload a new build to PyPI on master branch. | ||
# and upload a new build to TestPyPI. | ||
# | ||
# For more information see: | ||
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
@@ -58,7 +58,7 @@ jobs: | |
python -m pip install --upgrade pip | ||
poetry install | ||
poetry run python -m pip install tox tox-gh-actions | ||
- name: Install dependencies (Linux / Mac OS) | ||
if: ${{ startsWith(matrix.os, 'windows') == false }} | ||
run: | | ||
|
@@ -102,23 +102,9 @@ jobs: | |
|
||
- name: Publish distribution 📦 to Test PyPI | ||
uses: JRubics/[email protected] | ||
continue-on-error: true | ||
with: | ||
ignore_dev_requirements: 'yes' | ||
pypi_token: ${{ secrets.TEST_PYPI_PASSWORD }} | ||
repository_name: 'testpypi' | ||
repository_url: 'https://test.pypi.org/legacy/' | ||
|
||
|
||
# build-n-publish: | ||
# name: Build and publish Python 🐍 distributions 📦 to live PyPI | ||
# runs-on: ubuntu-latest | ||
# if: endsWith(github.ref, 'main') # TODO: Find a permanent solution | ||
|
||
# steps: | ||
# - uses: actions/[email protected] | ||
|
||
# - name: Publish distribution 📦 to PyPI | ||
# uses: JRubics/[email protected] | ||
# with: | ||
# ignore_dev_requirements: 'yes' | ||
# pypi_token: ${{ secrets.PYPI_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.PHONY: all clean lint test tox type | ||
|
||
CMD := poetry run | ||
PYMODULE := iplib3 | ||
TESTS := tests | ||
|
||
# Remember to activate Poetry's virtual environment in the project root folder | ||
# | ||
# Only once (ideally): | ||
# > pip install poetry | ||
# > poetry install | ||
# | ||
# Every time: | ||
# > poetry shell | ||
|
||
all: type lint test | ||
|
||
lint: | ||
# Configured in pyproject.toml | ||
$(CMD) pflake8 | ||
$(CMD) pylint $(PYMODULE) | ||
|
||
type: | ||
$(CMD) mypy $(PYMODULE) $(TESTS) | ||
|
||
test: | ||
# Configured in pyproject.toml | ||
$(CMD) pytest | ||
|
||
tox: | ||
# Configured in pyproject.toml | ||
$(CMD) tox | ||
|
||
clean: | ||
git clean -Xdf # Delete all files in .gitignore |
Oops, something went wrong.