Skip to content

Commit

Permalink
chore(debug): remove tests_only from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani Reinón committed Apr 29, 2022
1 parent 320739d commit c8cbde7
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 40 deletions.
40 changes: 24 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,29 @@ jobs:
test:
name: Test / OS ${{ matrix.os }} / Python ${{ matrix.python-version }}
strategy:
max-parallel: 1
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8, 3.9, '3.10']
python-version: [3.7, 3.8, 3.9, "3.10"]
runs-on: ${{ matrix.os }}
steps:
- name: Clone Repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.11
- name: Run Tests
run: make run_tests
- name: Upload Coverage
uses: codecov/codecov-action@v1
- name: Clone Repository
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.11

- name: Run Tests
run: make run_tests

- name: Upload Coverage
uses: codecov/codecov-action@v1

publish:
needs: test
Expand All @@ -37,27 +40,32 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
changelog_increment_filename: body.md

- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: body.md
tag_name: ${{ env.REVISION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Set up Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.1.11

# - name: Publish
# env:
# PYPI_USERNAME: __token__
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ install_poetry:
curl -sSL https://install.python-poetry.org | python -
poetry install

tests: tests_only tests_pre_commit
tests: install tests_pre_commit

tests_pre_commit:
poetry run pre-commit run --all-files
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 27 additions & 22 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,47 +1,52 @@
[tool.poetry]
name = "storage3"
version = "0.2.0"
authors = [
"Joel Lee <[email protected]>",
"Leon Fedden <[email protected]>",
"Daniel Reinón García <[email protected]>",
"Leynier Gutiérrez González <[email protected]>",
]
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
description = "Supabase Storage client for Python."
authors = ["Joel Lee <[email protected]>", "Leon Fedden <[email protected]>", "Daniel Reinón García <[email protected]>", "Leynier Gutiérrez González <[email protected]>"]
homepage = "https://github.com/supabase-community/storage-py"
repository = "https://github.com/supabase-community/storage-py"
documentation = "https://github.com/supabase-community/storage-py"
readme = "README.md"
homepage = "https://github.com/supabase-community/storage-py"
license = "MIT"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
name = "storage3"
readme = "README.md"
repository = "https://github.com/supabase-community/storage-py"
version = "0.2.0"

[tool.poetry.dependencies]
python = "^3.7"
httpx = ">=0.19,<0.22"
python = "^3.7"

[tool.poetry.dev-dependencies]
pytest-asyncio = "^0.18.3"
pre-commit = "^2.16.0"
[tool.poetry.group.dev.dependencies]
black = "^22.3.0"
pytest = "^6.2.5"
commitizen = "^2.20.3"
flake8 = "^4.0.1"
isort = "^5.9.3"
pre-commit = "^2.16.0"
pytest = "^6.2.5"
pytest-asyncio = "^0.18.3"
pytest-cov = "^3.0.0"
commitizen = "^2.20.3"
unasync-cli = "^0.0.9"
python-dotenv = "^0.20.0"
unasync-cli = "^0.0.9"

[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version = "0.1.0"
version_files = [
"storage3/utils.py",
"pyproject.toml:version"
"storage3/utils.py",
"pyproject.toml:version",
]
tag_format = "v$version"

[tool.pytest.ini_options]
asyncio_mode = "auto"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]

0 comments on commit c8cbde7

Please sign in to comment.