Skip to content

Commit

Permalink
Merge pull request #19 from cokelaer/main
Browse files Browse the repository at this point in the history
Update worflows
  • Loading branch information
cokelaer committed Dec 13, 2023
2 parents c6bc692 + b5df131 commit e1f6741
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,16 @@ jobs:
sudo apt install graphviz
sudo apt install libgl1 libgl1-mesa-glx libegl1 libgles2-mesa-dev libgl1-mesa-dev
- name: Install dependencies
- name: install package itself
run: |
pip install poetry
poetry install
- name: testing
run: |
pip install .[testing]
pip install sequana_fastqc
poetry run pytest --cov-report term --cov=sequana_pipetools
- name: Lint with flake8
run: |
pip install flake8
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,39 @@
name: Publish to PyPI
on:
on:
workflow_dispatch:
push:
tags:
- '*'

jobs:
build-n-publish:
name: Build and publish to PyPI and TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
- uses: actions/checkout@main
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.8

- name: Install package
- name: Install package
run: |
pip install build
pip install build poetry
- name: Build source tarball
run: |
rm -rf dist;
python setup.py sdist
poetry build
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit e1f6741

Please sign in to comment.