Skip to content

Commit 5b2fbff

Browse files
author
Daniel Zagaynov
committed
Add jobs for testing master branch and pypi
1 parent d41baf5 commit 5b2fbff

1 file changed

Lines changed: 55 additions & 8 deletions

File tree

.github/workflows/cross.yml

Lines changed: 55 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,63 @@ jobs:
1616
- plucky
1717
- questing
1818
steps:
19+
- uses: actions/checkout@v5
20+
with:
21+
ref: development
1922
- run: sudo apt-get update
20-
- run: sudo apt-get install libcrypt-dev python3 meson git
21-
- name: Clone sources
22-
run: git -C /tmp clone https://github.com/altlinux/pyxcrypt.git
23-
- name: Checkout
24-
run: git -C /tmp/pyxcrypt checkout development
23+
- run: sudo apt-get install libcrypt-dev meson
2524
- name: Prepare
26-
run: cd /tmp/pyxcrypt && meson linux_build
25+
run: meson linux_build
2726
- name: Run tests
28-
run: meson test -C /tmp/pyxcrypt/linux_build
27+
run: meson test -C linux_build
2928
- name: Print log on failure
3029
if: failure()
31-
run: cat /tmp/pyxcrypt/linux_build/meson-logs/testlog.txt
30+
run: cat linux_build/meson-logs/testlog.txt
31+
check_master:
32+
runs-on: ubuntu-latest
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
release:
37+
- bionic
38+
- focal
39+
- jammy
40+
- noble
41+
- plucky
42+
- questing
43+
steps:
44+
- run: sudo apt-get update
45+
- run: sudo apt-get install libcrypt-dev
46+
- uses: actions/checkout@v5
47+
- uses: actions/setup-python@v6
48+
with:
49+
python-version: "3.13"
50+
check-latest: true
51+
- name: Build and install wheel
52+
run: pip install .
53+
- name: Run tests
54+
run: python3 -m unittest discover -s tests/ -v
55+
check_pypi:
56+
runs-on: ubuntu-latest
57+
strategy:
58+
fail-fast: false
59+
matrix:
60+
release:
61+
- bionic
62+
- focal
63+
- jammy
64+
- noble
65+
- plucky
66+
- questing
67+
steps:
68+
- run: sudo apt-get update
69+
- run: sudo apt-get install libcrypt-dev
70+
- uses: actions/checkout@v5
71+
- uses: actions/setup-python@v6
72+
with:
73+
python-version: "3.13"
74+
check-latest: true
75+
- name: Build and install wheel
76+
run: pip3 install pyxcrypt
77+
- name: Run tests
78+
run: python3 -m unittest discover -s tests/ -v

0 commit comments

Comments
 (0)