Skip to content
Draft

(WIP) #360

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ jobs:
run: python -m pip install -r requirements-dev.txt

- name: Check Python syntax
run: python3 -m py_compile src/c2pa/c2pa.py
continue-on-error: true

- name: Check code style with flake8
run: flake8 src/c2pa/c2pa.py
run: make check-format
continue-on-error: true

tests-unix:
Expand Down Expand Up @@ -116,7 +112,7 @@ jobs:
python3 -c "from c2pa import C2paError; print('C2paError imported successfully')"

- name: Run tests
run: python3 ./tests/test_unit_tests.py
run: python3 -W ignore -m unittest discover -s tests/unit -t .

tests-windows:
name: Unit tests for developer setup (Windows)
Expand Down Expand Up @@ -202,7 +198,7 @@ jobs:
python -c "from c2pa import C2paError; print('C2paError imported successfully')"

- name: Run tests
run: python .\tests\test_unit_tests.py
run: python -W ignore -m unittest discover -s tests\unit -t .

build-linux-wheel:
name: Build Linux wheel
Expand Down Expand Up @@ -277,7 +273,7 @@ jobs:
- name: Run unittest tests on installed wheel
run: |
source venv/bin/activate
python ./tests/test_unit_tests.py
python -W ignore -m unittest discover -s tests/unit -t .

- name: Install pytest (in venv)
run: |
Expand All @@ -287,7 +283,7 @@ jobs:
- name: Run tests with pytest (venv)
run: |
source venv/bin/activate
venv/bin/pytest tests/test_unit_tests.py -v
venv/bin/pytest tests/unit -v

build-windows-wheel:
name: Build Windows wheel
Expand Down Expand Up @@ -379,7 +375,7 @@ jobs:
- name: Run tests with pytest (venv)
run: |
.\venv\Scripts\activate
.\venv\Scripts\pytest .\tests\test_unit_tests.py -v
.\venv\Scripts\pytest .\tests\unit -v

build-macos-wheel:
name: Build macOS wheels
Expand Down Expand Up @@ -458,7 +454,7 @@ jobs:
- name: Run unittest tests on installed wheel
run: |
source venv/bin/activate
python ./tests/test_unit_tests.py
python -W ignore -m unittest discover -s tests/unit -t .

- name: Install pytest (in venv)
run: |
Expand All @@ -468,7 +464,7 @@ jobs:
- name: Run tests with pytest (venv)
run: |
source venv/bin/activate
venv/bin/pytest tests/test_unit_tests.py -v
venv/bin/pytest tests/unit -v

sdist:
runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Agent Guidelines

Before working in this repository, read [AI_WORKFLOW.md](AI_WORKFLOW.md) and follow its guidance.

- For library behavior or implementation changes, read all of Part 1: Using the library and Part 2: Developing c2pa-python. For documentation, test, or tooling changes, read Part 2 and relevant Part 1 sections.
- For changes to the binding layer, follow the binding-layer rules and decision tree in AI_WORKFLOW.md.
- Before finishing code changes, run `make test` and `make check-format`. If prerequisites prevent a check from running, report the blocker and the results of checks that did run.
- Bump the Python package version only for release-ready changes, and ask the user for confirmation before changing it.
Loading
Loading