Skip to content

Commit

Permalink
fix(github): refactor ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-gricourt committed Sep 27, 2022
1 parent fbacaab commit 801f27f
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 44 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
Pytest:
needs: [Build]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
defaults:
run:
shell: bash -l {0}
Expand All @@ -46,10 +49,11 @@ jobs:
with:
miniconda-version: "latest"
environment-file: recipes/workflow.yaml
python-version: ${{ matrix.python-version }}
- name: 'Run tests'
run: |
conda env list
tox -e py37, py38
pip install --no-deps .
python -m pytest tests/unit
Coverage:
needs: [Build]
Expand All @@ -67,9 +71,11 @@ jobs:
with:
miniconda-version: "latest"
environment-file: recipes/workflow.yaml
python-version: '3.9'
- name: 'Run tests'
run: |
tox -e py39
pip install --no-deps .
coverage run -m pytest
coverage lcov
- name: 'Coveralls'
uses: coverallsapp/github-action@master
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include environment.yml
graft recipes
15 changes: 0 additions & 15 deletions environment.yml

This file was deleted.

17 changes: 0 additions & 17 deletions recipes/conda-env.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions recipes/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
name: test
channels:
- conda-forge
- plotly
- bioconda
- defaults
dependencies:
# straindesign.
- biopython
- cameo
- cobra<0.25.0
- markupsafe==2.0.1
- pandas
- plotly
- python-kaleido
- python
- pyyaml
# build.
- build
- conda-build
- coverage
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# App name - dependencies
env = {}
with open("environment.yml") as fid:
with open("recipes/workflow.yaml") as fid:
env = yaml.safe_load(fid)
name = env["name"]
install_requires = []
Expand Down
7 changes: 0 additions & 7 deletions tox.ini

This file was deleted.

0 comments on commit 801f27f

Please sign in to comment.