-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
139 additions
and
30 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
## Which issue does this PR close? | ||
|
||
<!-- | ||
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. | ||
--> | ||
|
||
Closes #. | ||
|
||
## Rationale for this change | ||
|
||
<!-- | ||
Why are you proposing this change? If this is already explained clearly in the issue then this section is not needed. | ||
Explaining clearly why changes are proposed helps reviewers understand your changes and offer better suggestions for fixes. | ||
--> | ||
|
||
## What changes are included in this PR? | ||
|
||
<!-- | ||
There is no need to duplicate the description in the issue here but it is sometimes worth providing a summary of the individual changes in this PR. | ||
--> | ||
|
||
## Are these changes tested? | ||
|
||
<!-- | ||
We typically require tests for all PRs in order to: | ||
1. Prevent the code from being accidentally broken by subsequent changes | ||
2. Serve as another way to document the expected behavior of the code | ||
If tests are not included in your PR, please explain why (for example, are they covered by existing tests)? | ||
--> | ||
|
||
## Are there any user-facing changes? | ||
|
||
<!-- | ||
If there are user-facing changes then we may require documentation to be updated before approving the PR. | ||
--> | ||
|
||
<!-- | ||
If there are any breaking changes to public APIs, please add the `api change` label. | ||
--> |
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,51 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Python application | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go environment | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.22' | ||
- name: Setup Java JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: '22' | ||
cache: maven | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
sudo add-apt-repository ppa:maxmind/ppa | ||
sudo apt update | ||
sudo apt install libmaxminddb0 libmaxminddb-dev | ||
python -m pip install --upgrade pip | ||
pip install ".[test]" ruff pytest-cov | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
python -V | ||
- name: Check with ruff | ||
run: | | ||
ruff check | ||
ruff format --check | ||
- name: Test with pytest | ||
run: | | ||
pytest tests/* |
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
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
MmdbU32, | ||
MmdbU64, | ||
MmdbU128, | ||
MmdbBaseType, | ||
) | ||
|
||
|
||
|
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