-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from CovertLab/tweaks
Miscellaneous
- Loading branch information
Showing
70 changed files
with
4,392 additions
and
1,159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Greatly improves performance and reproducibility | ||
OMP_NUM_THREADS=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!include:.gitignore | ||
notebooks | ||
data | ||
reconstruction/sim_data | ||
reconstruction/ecoli/scripts | ||
.git | ||
.github | ||
doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,6 @@ | |
|
||
name: QA | ||
|
||
# Improves reproducibility and speed | ||
env: | ||
OPENBLAS_NUM_THREADS: 1 | ||
OMP_NUM_THREADS: 1 | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
@@ -16,26 +11,18 @@ on: | |
jobs: | ||
Pytest: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip wheel | ||
pip install numpy==1.26.4 | ||
pip install -r requirements.txt | ||
- name: Compile Cython components | ||
run: | | ||
make clean compile | ||
enable-cache: true | ||
version: "0.5.7" | ||
- name: Install model | ||
run: USE_CYTHON=1 uv sync --frozen --extra dev | ||
- name: Test with pytest | ||
run: | | ||
python -m pytest --cov-report xml:cov.xml --cov=ecoli --cov=reconstruction --cov=wholecell --cov=runscripts --durations=0 | ||
uv run --env-file .env pytest --cov-report xml:cov.xml --cov=ecoli --cov=reconstruction --cov=wholecell --cov=runscripts --durations=0 | ||
- name: Code Coverage Report | ||
uses: irongut/[email protected] | ||
with: | ||
|
@@ -51,45 +38,29 @@ jobs: | |
path: code-coverage-results.md | ||
Mypy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip wheel | ||
pip install numpy==1.26.4 mypy | ||
pip install -r requirements.txt | ||
- name: Compile Cython components | ||
run: | | ||
make clean compile | ||
enable-cache: true | ||
version: "0.5.7" | ||
- name: Install model | ||
run: USE_CYTHON=1 uv sync --frozen --extra dev | ||
- name: Mypy | ||
run: | | ||
mypy | ||
uv run --env-file .env mypy | ||
Lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install --upgrade pip wheel | ||
pip install numpy==1.26.4 ruff | ||
pip install -r requirements.txt | ||
- name: Compile Cython components | ||
run: | | ||
make clean compile | ||
enable-cache: true | ||
version: "0.5.7" | ||
- name: Install model | ||
run: USE_CYTHON=1 uv sync --frozen --extra dev | ||
- name: Ruff | ||
run: | | ||
ruff check doc ecoli migration wholecell runscripts validation reconstruction | ||
uv run --env-file .env ruff check doc ecoli migration wholecell runscripts validation reconstruction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.