Skip to content

Commit

Permalink
Version 5.0.0 - CI Commit and Push
Browse files Browse the repository at this point in the history
- Cause that needs to come first! :D
  • Loading branch information
CCP-Zeulix committed Apr 15, 2024
1 parent e18d779 commit 41fad93
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Python Package

on:
release:
types: [ created ]

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install Dependencies
run: |
python --version
python -m pip install --upgrade pip
pip install --upgrade setuptools wheel twine
- name: Build and Package
run: |
python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run Unit Tests

on: [push, pull_request]

jobs:
unit-tests:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2

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

- name: Install Dependencies for Python ${{ matrix.python-version }}
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests on Python ${{ matrix.python-version }}
run: |
python -m unittest discover -v -f ./tests

0 comments on commit 41fad93

Please sign in to comment.