-
Notifications
You must be signed in to change notification settings - Fork 226
94 lines (85 loc) · 2.82 KB
/
Copy pathbugwarrior.yml
File metadata and controls
94 lines (85 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
---
name: bugwarrior
on: [push, pull_request]
jobs:
bugwarrior-test:
runs-on: ubuntu-latest
# We're currently seeing these complete in 1 minute.
timeout-minutes: 5
strategy:
matrix:
python-version: [3.11, 3.12, 3.13, 3.14]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Run tests
run: |
sudo apt-get update -qq
sudo apt-get install -qq -y taskwarrior
task --version
uv sync --all-extras --group test --python ${{ matrix.python-version }}
uv run bugwarrior --version
uv run pytest
bugwarrior-development-pip-test:
runs-on: ubuntu-latest
# We're currently seeing these complete in 1 minute.
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Run tests
run: |
sudo apt-get update -qq
sudo apt-get install -qq -y taskwarrior
task --version
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade "pip>=26.1"
pip config --site set install.uploaded-prior-to P3D
pip install --upgrade setuptools
pip install -e ".[all]"
pip install --group test
bugwarrior --version
pytest
# Cannot migrate to uv: astral-sh/setup-uv does not support ppc64le,
# and uraimo/run-on-arch-action runs inside a Docker container.
bugwarrior-multiarch-test:
runs-on: ubuntu-latest
# We're currently seeing these complete in 10-30 minutes.
timeout-minutes: 60
strategy:
matrix:
architecture: [ppc64le]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests on given architecture
uses: uraimo/run-on-arch-action@v3
with:
arch: ${{ matrix.architecture }}
distro: ubuntu_latest
githubToken: ${{ github.token }}
env: |
# https://github.com/PyO3/setuptools-rust/issues/236
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
install: |
apt-get update -qq
apt-get install -qq -y \
cargo git libffi-dev libjpeg-dev libssl-dev python3-dev python3-venv taskwarrior zlib1g-dev
task --version
run: |
apt-get install -qq -y pkg-config libssl-dev
mkdir .venv
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade "pip>=26.1"
pip config --site set install.uploaded-prior-to P3D
pip install --upgrade setuptools
pip install -e .[all]
pip install --group test
bugwarrior --version
pytest