diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml new file mode 100644 index 0000000..a266f6e --- /dev/null +++ b/.github/workflows/python-ci.yml @@ -0,0 +1,33 @@ +# python-ci.yml +name: basic CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build-and-run-pytest: + + runs-on: ubuntu-latest + + steps: + # First step (unnamed here) is to checkout to the branch that triggered the event + - uses: actions/checkout@v3 + + # Second step: install python 3.12.9 + - name: Set up Python 3.12.9 + uses: actions/setup-python@v2 + with: + python-version: "3.12.9" + + # Third step: install python packages using a requirements file + - name: Install dependencies + run: | + python -m pip install --upgrade pip cython wheel + pip install -r requirements.txt + + # Fourth step: run tests with Pytest + - name: Run tests + run: make diff --git a/.gitignore b/.gitignore index 81b0151..6d44989 100644 --- a/.gitignore +++ b/.gitignore @@ -4,12 +4,11 @@ training_outputs/ .python-version .env +.envrc mlflow.db -img_bw_resized.png -img_reconstructed.png -original_resized.png +tests/images/ # OS generated files # ######################