Skip to content

Commit 9b2a655

Browse files
authored
update Python publish workflow
1 parent 18279da commit 9b2a655

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
name: ${{ matrix.os-version }} (${{ matrix.python-version }})
1313

1414
strategy:
15-
fail-fast: false
15+
fail-fast: true
1616
matrix:
1717
os-version: ["ubuntu-latest"]
18-
python-version: ["3.11"] # ["3.8", "3.9", "3.10"]
18+
python-version: ["3.11"]
1919

2020
steps:
2121
- uses: actions/checkout@v3
2222
- name: "Set up Python ${{ matrix.python-version }}"
2323
uses: actions/setup-python@v3
2424
with:
2525
python-version: ${{ matrix.python-version }}
26-
cache: 'pip'
26+
2727
- name: "Install flake8"
2828
run: |
2929
pip install flake8
@@ -41,20 +41,19 @@ jobs:
4141
python-version: ${{ matrix.python-version }}
4242
channels: conda-forge,bioconda
4343
environment-file: environment.yml
44+
4445
- name: "Install dependencies"
4546
shell: bash -l {0}
4647
run: |
4748
python -m pip install --upgrade pip
4849
pip install setuptools wheel build pytest
4950
pip install twine
50-
# - name: "Test with pytest"
51-
# shell: bash -l {0}
52-
# run: |
53-
# pytest -s
51+
5452
- name: Build package
5553
shell: bash -l {0}
5654
run: |
5755
python -m build
56+
5857
- name: Publish package
5958
uses: pypa/gh-action-pypi-publish@release/v1
6059
with:

0 commit comments

Comments
 (0)