Skip to content

Commit

Permalink
+ init
Browse files Browse the repository at this point in the history
  • Loading branch information
caffeine-addictt committed Nov 12, 2023
1 parent 1b2a11c commit 849f2c3
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 12 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publissh to PyCl
on: push
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build

- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/
27 changes: 15 additions & 12 deletions .github/workflows/test-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,26 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.x"]

steps:
- uses: szenius/[email protected]
with:
timezoneLinux: "Asia/Singapore"
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install pytest pytest-md pytest-emoji
- uses: pavelzw/pytest-action@v2
with:
emoji: false
verbose: true
job-summary: true
click-to-expand: true
report-title: 'Test Report'
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with Ruff
run: |
pip install ruff
ruff --format=github --target-version=py311 .
continue-on-error: true
- name: Test with pytest
run: |
coverage run -m pytest -v -s
- name: Generate Coverage Report
run: |
coverage report -m
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Python stuff
venv/
*.pytest_cache
__pycache__/

*.py[cod]
*$py.class

*.ruff_cache
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
iniconfig==2.0.0
packaging==23.2
pluggy==1.3.0
pytest==7.4.3
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
],
python_requires = '>=3.10'
)

0 comments on commit 849f2c3

Please sign in to comment.