Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ssssarah committed Oct 29, 2024
1 parent 8d2f7ce commit 6927966
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint

on:
push:
pull_request:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]

- name: Install Python 3
uses: actions/[email protected]
with:
python-version: 3.8

- name: Install dev dependencies
run:
pip install .[dev]

- name: Lint
run: tox -e lint

- name: Type checking
run: tox -e type
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish sdist tarball to PyPi

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build-n-publish:

name: Build and publish on PyPI

runs-on: ubuntu-latest

steps:

- uses: actions/[email protected]

- name: Set up Python 3.8
uses: actions/[email protected]
with:
python-version: 3.8

- name: Build a source tarball
run: python setup.py sdist

- name: Publish distribution package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 6927966

Please sign in to comment.