Skip to content

Commit

Permalink
move off to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmaslanka committed Mar 6, 2024
1 parent e6cf6e1 commit 1aba693
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ name: build-satella
run-name: ${{ github.actor }}
on: [ push ]
jobs:
build-wheel:
prepare-system:
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: [ "3.6", "3.7", "3.8", "pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12" ]
python-version: [ "3.9" ]
steps:
- uses: actions/checkout@4
- uses: actions/setup-python@4
with:
python-version: '${{ matrix.python-version }}'
cache: 'pip'
- name: Install everything
run: pip install -e .[test,dev,extras]
with:
Expand All @@ -35,5 +32,18 @@ jobs:
with:
python-version: '${{ matrix.python-version }}'
cache: 'pip'
paths:
- '!*.MD'
build-package:
needs: ["prepare-system"]
runs-on: ubuntu-latest
steps:
- name: Build package
run: python -m build .
- name: Store credentials
run: |
echo $PYPIRC_PASSWORD_DATA > ~/.pypirc
twine upload dist/*
convert-and-upload-coverage:
needs: ["build-package", "tests"]
steps:
- run: coverage xml
- uses: caffco/[email protected]
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ dependencies = ["psutil"]
version = {attr = "satella.__version__"}

[project.optional-dependencies]
dev = ["pylint", "pyyaml", "toml", "requests", "opentracing"]
test = ["pytest-cov", "pytest-xdist", "pytest", "pytest-forked", "pluggy", "py"]
dev = ["pylint", "pyyaml", "toml", "requests", "opentracing", "codeclimate-test-reporter"]
test = ["pytest-cov", "pytest-xdist", "pytest", "pytest-forked", "pluggy", "py", "coverage<4.4"]
extras = ["requests","pyyaml","toml", "ujson", "cassandra-driver", "opentracing"]


Expand All @@ -41,6 +41,9 @@ build-backend = "setuptools.build_meta"
[tool.pep8]
max-line-length = 119

[tool.distutils.bdist_wheel]
universal = true

[project.urls]
Homepage = "https://github.com/piotrmaslanka/satella"
Documentation = "https://satella.readthedocs.io/"
Expand Down

0 comments on commit 1aba693

Please sign in to comment.