Skip to content

Commit 16e6f51

Browse files
simplify pipelines
1 parent 1a11a85 commit 16e6f51

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: build
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
tests:
77

88
runs-on: ${{ matrix.os }}
99

@@ -19,35 +19,29 @@ jobs:
1919
uses: actions/setup-python@v2
2020
with:
2121
python-version: ${{ matrix.python }}
22-
- name: Install tox setuptools_scm
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install tox setuptools_scm hatch
22+
- name: Install tox
23+
run: pip install tox
2624
- name: Test
27-
run: |
28-
tox -e py
25+
run: tox -e py
2926

3027
deploy:
3128

3229
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
3330

3431
runs-on: ubuntu-latest
3532

36-
needs: build
33+
needs: tests
3734

3835
steps:
3936
- uses: actions/checkout@v1
4037
- name: Set up Python
41-
uses: actions/setup-python@v1
38+
uses: actions/setup-python@v2
4239
with:
4340
python-version: "3.7"
44-
- name: Install wheel
45-
run: |
46-
python -m pip install --upgrade pip
47-
pip install wheel
41+
- name: Install hatch
42+
run: pip install hatch
4843
- name: Build package
49-
run: |
50-
python setup.py sdist bdist_wheel
44+
run: hatch build
5145
- name: Publish package to PyPI
5246
uses: pypa/gh-action-pypi-publish@master
5347
with:

0 commit comments

Comments
 (0)