Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,24 @@ on:
pull_request:
branches-ignore: []
schedule:
- cron: '0 0 1 * *'
- cron: '0 0 2 * *'

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python: [3.9, '3.10', '3.11']
python: ['3.10', '3.11', '3.12']
fail-fast: false

steps:

- name: install graphviz
run: |
sudo apt-get update -qq
sudo apt-get install -y graphviz

- name: checkout git repo
uses: actions/checkout@v4

Expand All @@ -31,6 +36,8 @@ jobs:
environment-file: environment.yml
create-args: >-
python=${{ matrix.python }}
cache-environment: true
cache-downloads: true

- name: install package itself
shell: bash -l {0}
Expand All @@ -48,8 +55,10 @@ jobs:
pytest -v --cov-report term-missing --cov=sequana_pipelines.demultiplex

- name: coveralls
continue-on-error: true
shell: bash -l {0}
run: |
echo $COVERALLS_REPO_TOKEN
coveralls --service=github
env:
GITHUB_TOKEN: ${{ github.token }}
11 changes: 6 additions & 5 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ on:
jobs:
build-n-publish:
name: Build and publish to PyPI and TestPyPI
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.11

Expand All @@ -26,14 +28,13 @@ jobs:
poetry build

- name: Publish distribution to Test PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
6 changes: 3 additions & 3 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: demultiplex
channels:
- conda-forge
- defaults
- conda-forge
- defaults
dependencies:
- pip
- pulp>=2.7
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ sequana-wrappers = ">=26.3.0"
click-completion = ">=0.5.2"


snakemake = ">=7.32"
pulp = ">=2.7"
[tool.poetry.scripts]
sequana_demultiplex = "sequana_pipelines.demultiplex.main:main"

Expand Down
Loading