From 576f5cbaac693099e94e3c27a3bfb99dc832ffeb Mon Sep 17 00:00:00 2001 From: pm3310 Date: Wed, 27 Dec 2023 17:24:48 +0000 Subject: [PATCH] Created GH actions --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/release.yml | 16 ++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8a49cf9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ac5d3d5 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}