Skip to content

Commit b7faaa1

Browse files
authored
Merge 1ce1762 into 24db2e2
2 parents 24db2e2 + 1ce1762 commit b7faaa1

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

.github/workflows/deploy-pypi.yml

+2-33
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,10 @@
1-
name: pipeline
1+
name: Deploy to PyPI
22

3-
on:
4-
push:
5-
branches:
6-
- main
3+
on: [pull_request]
74

85
jobs:
96

10-
test:
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16-
os: [ubuntu-latest, macOS-latest, windows-latest]
17-
steps:
18-
- uses: actions/checkout@v2
19-
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: ${{ matrix.python-version }}
23-
- name: Install dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
python -m pip install -e ".[dev]"
27-
- name: Test with pytest
28-
run: |
29-
flake8
30-
pydocstyle hiclass tests
31-
pytest -v --cov=hiclass --cov-fail-under=90 --cov-report html
32-
coverage xml
33-
- name: Upload Coverage to Codecov
34-
if: matrix.os == 'ubuntu-latest'
35-
uses: codecov/codecov-action@v2
36-
377
bump:
38-
needs: test
398
runs-on: ubuntu-latest
409
permissions:
4110
contents: write

0 commit comments

Comments
 (0)