Skip to content

Commit

Permalink
Added gha and removed bad commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sgeulette committed Aug 30, 2024
1 parent 5e9e597 commit e30ac7b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Push tests
# run-name: ${{ github.actor }} push tests

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- python: 3.10.14
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up pyenv and Python
uses: "gabrielfalcao/pyenv-action@v14"
with:
default: "${{ matrix.python }}"
- name: Setup Env
run: |
pip install --upgrade pip
pip install -r requirements.txt -e .
- name: test
run: |
python src/imio/updates/tests/tests.py
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ share/
pip-selfcheck.json
pyvenv.cfg
src/imio.updates.egg-info/
src/imio-pyutils
4 changes: 2 additions & 2 deletions src/imio/updates/update_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,8 @@ def run_function_parts(func_parts, batches_conf, params):
last = 2 + yet_to_treat // batch_config["bn"] # int part
if yet_to_treat % batch_config["bn"]: # modulo if p > b or p < b
last += 1
if last == 2:
batch_delete_files({}, batch_config)
# if last == 2:
# batch_delete_files({}, batch_config)
for batch in range(first, last):
if " BATCH=" in params["env"] and batch == (last - 1):
params["env"] += " BATCH_LAST=1"
Expand Down

0 comments on commit e30ac7b

Please sign in to comment.