-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into hotfix/ground-base
- Loading branch information
Showing
5 changed files
with
61 additions
and
41 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Changes here will be overwritten by Copier | ||
_commit: 0.1.0 | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: 0.1.2 | ||
_src_path: https://github.com/Ingenjorsarbete-For-Klimatet/ifk-python-template.git | ||
author: Mladen Gibanica | ||
badge_gistid: e2326bc24f74f346a118a97b09e852ec | ||
email: [email protected] | ||
module_name: lantmateriet | ||
package_name: geometry | ||
project_description: Parse data from Lantmäteriet. | ||
project_name: ifk-lantmateriet | ||
badge_gistid: e2326bc24f74f346a118a97b09e852ec |
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,44 @@ | ||
name: Build and publish to PyPi | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Build package | ||
run: | | ||
python -m pip install -U pip build | ||
python -m build | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|
||
pypi--build-publish: | ||
environment: release | ||
permissions: | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Publish | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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,10 +1,11 @@ | ||
name: Build | ||
name: Test | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
|
@@ -15,20 +16,19 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-add-repository ppa:ubuntugis/ubuntugis-unstable | ||
sudo apt-get update | ||
sudo apt-get install gdal-bin libgdal-dev | ||
python -m pip install --upgrade pip | ||
pip install -e ".[test]" | ||
- name: Test with pytest | ||
run: | | ||
python -m pytest --cov-report term-missing --cov=src tests | ||
coverage json | ||
- name: Export summary stats | ||
if: runner.os != 'Windows' && matrix.python-version == '3.11' | ||
run: | | ||
export TOTAL=$(python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])") | ||
echo "total=$TOTAL" >> $GITHUB_ENV | ||
- name: Coverage badge | ||
if: runner.os != 'Windows' && matrix.python-version == '3.11' | ||
uses: schneegans/[email protected] | ||
with: | ||
auth: ${{ secrets.BADGE_SECRET }} | ||
|
@@ -38,4 +38,4 @@ jobs: | |
message: ${{ env.total }}% | ||
minColorRange: 50 | ||
maxColorRange: 90 | ||
valColorRange: ${{ env.total }} | ||
valColorRange: ${{ env.total }} |
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 |
---|---|---|
|
@@ -12,13 +12,13 @@ authors = [ | |
{ name = "Mladen Gibanica", email = "[email protected]" }, | ||
] | ||
requires-python = ">=3.9" | ||
dependencies = ["geopandas ~= 0.14", "pyogrio ~= 0.6.0", "pyarrow ~= 14.0"] | ||
dependencies = ["geopandas ~= 0.14", "pyogrio ~= 0.7.0", "pyarrow ~= 14.0"] | ||
|
||
[project.optional-dependencies] | ||
lint = [ | ||
"ruff ~= 0.1", | ||
] | ||
type = ["mypy ~= 0.990", "types-requests ~= 2.28", "pandas-stubs ~= 1.5"] | ||
type = ["mypy ~= 1.7", "types-requests ~= 2.28", "pandas-stubs ~= 1.5"] | ||
test = ["pytest ~= 7.1", "coverage ~= 6.5", "pytest-cov ~= 4.0"] | ||
doc = [ | ||
"mkdocs ~= 1.4", | ||
|