Skip to content

Commit

Permalink
added gitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Feb 8, 2023
1 parent 6fb4227 commit a6ddac9
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Lint

on: [pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: psf/black@stable
31 changes: 31 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
35 changes: 35 additions & 0 deletions .github/workflows/run-pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#name: Run pytests
#
#on:
# push:
# branches: [dev]
# pull_request:
# branches: [master, dev]
#
#jobs:
# pytest:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# python-version: ["3.8", "3.9", "3.10"]
# os: [ubuntu-latest]
#
# steps:
# - uses: actions/checkout@v2
#
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
#
# - name: Install dev dependencies
# run: if [ -f requirements/requirements-dev.txt ]; then pip install -r requirements/requirements-dev.txt; fi
#
# - name: Install test dependencies
# run: if [ -f requirements/requirements-test.txt ]; then pip install -r requirements/requirements-test.txt; fi
#
# - name: Install package
# run: python -m pip install .
#
# - name: Run pytest tests
# run: pytest tests -x -vv
2 changes: 1 addition & 1 deletion bedboss/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" Package-level data """
from bedboss import *

__version__ = "0.1.0"
__version__ = "0.1.0-dev1"
__package_name__ = "bedboss"
__author__ = [
"Michal Stolarczyk",
Expand Down

0 comments on commit a6ddac9

Please sign in to comment.