Skip to content

Commit

Permalink
Resync master with Production after 1.12 release (CogStack#457)
Browse files Browse the repository at this point in the history
* Split tests in production workflow to avoid Ouf Of Memory (137) (CogStack#456)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: zethson <lukas.heumos@posteo.net>
Co-authored-by: tomolopolis <tsearle88@gmail.com>
Co-authored-by: Xi Bai <82581439+baixiac@users.noreply.github.com>
Co-authored-by: Anthony Shek <55877857+antsh3k@users.noreply.github.com>
Co-authored-by: antsh3k <antshek@hotmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zeljko <w.kraljevic@gmail.com>
Co-authored-by: Sander Tan <s.c.tan-3@umcutrecht.nl>
Co-authored-by: Lukas Heumos <lukas.heumos@posteo.net>
Co-authored-by: James Brandreth <james.brandreth@gmail.com>
Co-authored-by: Xi Bai <baixiac@gmail.com>
Co-authored-by: adam-sutton-1992 <adam.sutton@kcl.ac.uk>
Co-authored-by: adam-sutton-1992 <60137864+adam-sutton-1992@users.noreply.github.com>
Co-authored-by: jenniferajiang <jennigato95@gmail.com>
Co-authored-by: Jennifer Jiang <37081323+jenniferajiang@users.noreply.github.com>
Co-authored-by: Shubham Agarwal <66172189+shubham-s-agarwal@users.noreply.github.com>
Co-authored-by: Vlad Dinu <62345326+vladd-bit@users.noreply.github.com>
  • Loading branch information
17 people authored Jun 20, 2024
1 parent 7058ec4 commit 3603dd2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
python -m unittest discover
all_files=$(git ls-files | grep '^tests/.*\.py$' | grep -v '/__init__\.py$' | sed 's/\.py$//' | sed 's/\//./g')
num_files=$(echo "$all_files" | wc -l)
midpoint=$((num_files / 2))
first_half_nl=$(echo "$all_files" | head -n $midpoint)
second_half_nl=$(echo "$all_files" | tail -n +$(($midpoint + 1)))
timeout 25m python -m unittest ${first_half_nl[@]}
timeout 25m python -m unittest ${second_half_nl[@]}
- name: Install pypa/build
run: >-
Expand Down

0 comments on commit 3603dd2

Please sign in to comment.