Skip to content

Commit

Permalink
replaced the github actions with a new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal Ben David committed Dec 21, 2020
1 parent f4328cf commit 63830bc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 38 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,23 @@
name: Build
on: [push, pull_request]

jobs:
build:
if: github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Ubuntu packages
run: >-
sudo apt install libidn2-dev;
- name: Test
run: >-
python setup.py test
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
@@ -0,0 +1,23 @@
name: Deploy
on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build a source tarball
run: >-
python -m pip install --user --upgrade setuptools;
python setup.py sdist;
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}
38 changes: 0 additions & 38 deletions .github/workflows/pythonpackage.yml

This file was deleted.

0 comments on commit 63830bc

Please sign in to comment.