forked from broadinstitute/CellBender
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (35 loc) · 1.09 KB
/
run_packaging_check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Package for PyPI
name: 'packaging'
on:
pull_request:
branches: [ master, dev ]
jobs:
build:
runs-on: 'ubuntu-latest'
strategy:
matrix:
python-version: ['3.7']
steps:
- name: 'Checkout repo'
uses: actions/checkout@v3
- name: 'Set up Python ${{ matrix.python-version }}'
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: 'Install packaging software'
run: pip install --upgrade setuptools build twine
- name: 'Print package versions'
run: pip list
- name: 'Package code using build'
run: python -m build
- name: 'Check package using twine'
run: python -m twine check dist/*
- name: 'Extract branch name'
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
id: extract_branch
- name: 'Install from github branch and run a test'
run: |
pip install pytest git+https://github.com/broadinstitute/CellBender@${{ steps.extract_branch.outputs.branch }}
cellbender -v