-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (38 loc) · 1.22 KB
/
python-package.yml
File metadata and controls
40 lines (38 loc) · 1.22 KB
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
name: SolveBio Python Package
# on: [push, pull_request]
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ['3.8', '3.9','3.10', '3.11', '3.12']
env:
SOLVEBIO_API_HOST: ${{ secrets.QUARTZBIO_API_HOST }}
SOLVEBIO_API_KEY: ${{ secrets.QUARTZBIO_API_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Export pythonpath
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)
- name: Install Tox and any other packages
run: |
pip install -U wheel --user
pip install setuptools
pip install flake8 pytest
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
pip install XlsxWriter===0.9.3
- name: Scripts
run: |
python -m pytest recipes/tests/test_recipes_sync.py
python -m pytest solvebio/test/test_object.py
python -m flake8 solvebio