Skip to content

Commit

Permalink
Created GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pm3310 committed Dec 27, 2023
1 parent d9aef7a commit 576f5cb
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.7, 3.8]

steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install dependencies
run: pip install -r requirements.txt

- name: Run lint
run: make lint

- name: Run tests
run: make test
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release
on:
release:
types:
- created

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Deploy to PyPI
uses: pypa/gh-action-pypi-publish@v2
with:
username: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 576f5cb

Please sign in to comment.