-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to `pyproject.toml` * Drop Python 3.6 support
- Loading branch information
Showing
3 changed files
with
17 additions
and
10 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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.7'] | ||
python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.7'] | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
@@ -37,10 +37,10 @@ jobs: | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# The GitHub editor is 127 chars wide | ||
flake8 . --count --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Install package | ||
run: pip install . | ||
- name: Test with pytest | ||
run: | | ||
pip install . | ||
pytest --cov=gcp_storage_emulator --cov-report=xml tests/ | ||
run: pytest | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
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,11 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools==60.0.0", | ||
"wheel==0.37.0" | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--cov=gcp_storage_emulator --cov-report=xml --cov-branch" | ||
testpaths = [ | ||
"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