Skip to content

Commit

Permalink
pie: add test target
Browse files Browse the repository at this point in the history
  • Loading branch information
ognevny committed Aug 18, 2024
1 parent f5cb6ff commit 7060f68
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
git:
- name: test
run: |
cd pie && python3 mcko.py && cd ..
meson setup -Dbuild_all=true -Dtests=true build
meson compile -C build
meson test -C build
1 change: 1 addition & 0 deletions pie/mcko.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/python3
# Решения нескольких задач из следующего комплекта:
# https://mcko.ru/uploads/documents/informatika_-10-klass_komplekt_1-91f3befffaba6eed.zip

Expand Down
14 changes: 13 additions & 1 deletion pie/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
py = import('python').find_installation(pure: false, modules: ['matplotlib', 'numba'])
py = import('python').find_installation(
pure: false,
modules: ['matplotlib', 'numba'],
)

src_py = [
'complex_dz.py',
Expand All @@ -14,3 +17,12 @@ src_py = [
]

py.install_sources(src_py, subdir: 'ognevny-pie')

if tests
mcko_test = run_command(
meson.project_source_root() / 'pie' / 'mcko.py',
capture: true,
check: true,
)
message(mcko_test.stdout())
endif

0 comments on commit 7060f68

Please sign in to comment.