Skip to content

Commit 152927b

Browse files
committed
pypi release workflow
1 parent 8916e5c commit 152927b

File tree

2 files changed

+22
-31
lines changed

2 files changed

+22
-31
lines changed

.github/workflows/publish-release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,29 @@ on:
66
- main
77

88
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
pip install -r test-requirements.txt
26+
- name: Test with pytest
27+
run: |
28+
pytest --cov=hostinger-api
29+
930
pypi:
31+
needs: [build]
1032
runs-on: ubuntu-latest
1133
permissions:
1234
id-token: write

.github/workflows/python.yml

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

0 commit comments

Comments
 (0)