-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: move to GitHub actions and Codecov
- Loading branch information
Showing
5 changed files
with
74 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
python-version: | ||
- "3.7.13" | ||
- "3.8.12" | ||
- "3.9.12" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v3" | ||
- uses: "actions/setup-python@v4" | ||
with: | ||
python-version: '${{ matrix.python-version }}' | ||
- name: "Start MinIO" | ||
run: ./start-minio.sh | ||
- name: "Install package and python dependencies" | ||
run: | | ||
pip install .[dev] | ||
pip install https://github.com/rogerbinns/apsw/releases/download/3.36.0-r1/apsw-3.36.0-r1.zip --global-option=fetch --global-option=--version --global-option=3.36.0 --global-option=--sqlite --global-option=build --global-option=--enable-all-extensions | ||
- name: "Test" | ||
run: | | ||
pytest --cov | ||
- uses: codecov/codecov-action@v3 |
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 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "sqlite-s3vfs" | ||
version = "0.0.0.dev0" | ||
authors = [ | ||
{ name="Department for International Trade", email="[email protected]" }, | ||
] | ||
description = "Virtual filesystem for SQLite to read from and write to S3" | ||
readme = "README.md" | ||
requires-python = ">=3.7.11" | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Topic :: Database", | ||
] | ||
dependencies = [ | ||
"boto3>=1.18.51", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"pytest>=6.2.5", | ||
"pytest-cov>=3.0.0", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/uktrade/sqlite-s3vfs" | ||
|
||
[tool.hatch.build] | ||
include = [ | ||
"sqlite_s3vfs.py", | ||
] |
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