Skip to content

Commit 63830bc

Browse files
author
Gal Ben David
committed
replaced the github actions with a new version
1 parent f4328cf commit 63830bc

3 files changed

Lines changed: 46 additions & 38 deletions

File tree

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
if: github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags')
7+
runs-on: ubuntu-20.04
8+
strategy:
9+
matrix:
10+
python-version: [3.6, 3.7, 3.8, 3.9, pypy3]
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install Ubuntu packages
19+
run: >-
20+
sudo apt install libidn2-dev;
21+
- name: Test
22+
run: >-
23+
python setup.py test

.github/workflows/deploy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Set up Python 3.8
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.8
16+
- name: Build a source tarball
17+
run: >-
18+
python -m pip install --user --upgrade setuptools;
19+
python setup.py sdist;
20+
- name: Publish distribution 📦 to PyPI
21+
uses: pypa/gh-action-pypi-publish@master
22+
with:
23+
password: ${{ secrets.pypi_password }}

.github/workflows/pythonpackage.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)