Skip to content

Commit 849f2c3

Browse files
+ init
1 parent 1b2a11c commit 849f2c3

5 files changed

Lines changed: 54 additions & 12 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publissh to PyCl
2+
on: push
3+
jobs:
4+
build:
5+
name: Build distribution
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Setup python
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: "3.x"
15+
16+
- name: Install pypa/build
17+
run: >-
18+
python3 -m
19+
pip install
20+
build
21+
--user
22+
23+
- name: Build a binary wheel and a source tarball
24+
run: python3 -m build
25+
26+
- name: Store the distribution packages
27+
uses: actions/upload-artifact@v3
28+
with:
29+
name: python-package-distributions
30+
path: dist/

.github/workflows/test-worker.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,26 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
11+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.x"]
1212

1313
steps:
14-
- uses: szenius/set-timezone@v1.2
15-
with:
16-
timezoneLinux: "Asia/Singapore"
1714
- uses: actions/checkout@v3
1815
- name: Set up Python ${{ matrix.python-version }}
1916
uses: actions/setup-python@v4
2017
with:
2118
python-version: ${{ matrix.python-version }}
2219
- name: Install dependencies
23-
run: pip install pytest pytest-md pytest-emoji
24-
- uses: pavelzw/pytest-action@v2
25-
with:
26-
emoji: false
27-
verbose: true
28-
job-summary: true
29-
click-to-expand: true
30-
report-title: 'Test Report'
20+
run: |
21+
python -m pip install --upgrade pip
22+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
23+
- name: Lint with Ruff
24+
run: |
25+
pip install ruff
26+
ruff --format=github --target-version=py311 .
27+
continue-on-error: true
28+
- name: Test with pytest
29+
run: |
30+
coverage run -m pytest -v -s
31+
- name: Generate Coverage Report
32+
run: |
33+
coverage report -m

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Python stuff
22
venv/
3+
*.pytest_cache
34
__pycache__/
5+
46
*.py[cod]
57
*$py.class
8+
9+
*.ruff_cache

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
iniconfig==2.0.0
2+
packaging==23.2
3+
pluggy==1.3.0
4+
pytest==7.4.3

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@
2626
'Operating System :: MacOS :: MacOS X',
2727
'Operating System :: Microsoft :: Windows',
2828
],
29+
python_requires = '>=3.10'
2930
)

0 commit comments

Comments
 (0)