Skip to content

Commit

Permalink
GA.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed Apr 19, 2023
1 parent 69ac1d6 commit b43f7e8
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
@@ -0,0 +1 @@
github: eerimoq
47 changes: 47 additions & 0 deletions .github/workflows/pythonpackage.yml
@@ -0,0 +1,47 @@
name: Test

on: [push, pull_request]

jobs:
test:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9, '3.10']

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Test
run: |
python -m pytest
release:
needs: [test]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install pypa/build
run: |
python -m pip install build --user
- name: Build a binary wheel and a source tarball
run: |
git clean -dfx
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
skip_existing: true
password: ${{ secrets.pypi_password }}

0 comments on commit b43f7e8

Please sign in to comment.