Skip to content

Commit 09a9259

Browse files
committed
First attempt at github action
1 parent c7f33b8 commit 09a9259

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: PyCSH CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
ci:
9+
runs-on: ubuntu-24.04
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v1
14+
# - name: Install gcovr
15+
# run: pip3 install gcovr==5.0
16+
- name: Install apt dependencies
17+
run: sudo apt install -y libbsd-dev python3-pip pkg-config libcurl4-openssl-dev libzmq3-dev
18+
- name: Install pip dependencies
19+
run: pip3 install --break-system-packages meson ninja
20+
# - uses: BSFishy/meson-build@v1.0.3
21+
# with:
22+
# action: build
23+
# options: --verbose
24+
# #setup-options: -Db_coverage=true -Ddefault_library=static
25+
# directory: builddir
26+
# meson-version: 1.9.1
27+
# ninja-version: 1.13.0
28+
- name: Build and install PyCSH
29+
run: ./configure && ./install
30+
- name: Run unit tests
31+
run: ./tests/main.py
32+
# - name: Run gcovr
33+
# run: ninja -C builddir test coverage-text && tail -n3 builddir/meson-logs/coverage.txt

0 commit comments

Comments
 (0)