@@ -5,7 +5,7 @@ on: [push, pull_request]
5
5
6
6
jobs :
7
7
bugwarrior-test :
8
- runs-on : ubuntu-20.04
8
+ runs-on : ubuntu-latest
9
9
# We're currently seeing these complete in 1 minute.
10
10
timeout-minutes : 5
11
11
strategy :
@@ -14,13 +14,13 @@ jobs:
14
14
jira-version : [1.0.10, 2.0.0]
15
15
steps :
16
16
- name : Checkout code
17
- uses : actions/checkout@v2
17
+ uses : actions/checkout@v4
18
18
- name : Set up Python ${{ matrix.python-version }}
19
- uses : actions/setup-python@v2
19
+ uses : actions/setup-python@v5
20
20
with :
21
21
python-version : ${{ matrix.python-version }}
22
22
- name : Set Jira version ${{ matrix.jira-version }}
23
- run : echo "JIRAVERSION=${{ matrix.jira-version }}" >> $GITHUB_ENV
23
+ run : echo "JIRAVERSION=${{ matrix.jira-version }}" >> " $GITHUB_ENV"
24
24
- name : Run tests
25
25
run : |
26
26
sudo apt-get update -qq
@@ -36,56 +36,45 @@ jobs:
36
36
pytest --cov=bugwarrior --cov-branch tests
37
37
flake8
38
38
- name : Coverage
39
- uses : codecov/codecov-action@v1
39
+ uses : codecov/codecov-action@v5
40
40
with :
41
- file : ./.coverage
41
+ files : ./.coverage
42
42
# Fragile way to only run codecov once.
43
43
# See https://github.com/codecov/codecov-action/issues/40.
44
44
if : |
45
45
matrix.python-version == 3.9 &&
46
46
matrix.jira-version == '2.0.0'
47
47
bugwarrior-multiarch-test :
48
- runs-on : ubuntu-20.04
48
+ runs-on : ubuntu-latest
49
49
# We're currently seeing these complete in 10-30 minutes.
50
50
timeout-minutes : 60
51
51
strategy :
52
52
matrix :
53
- python-version : [3.8, 3.9, "3.10", 3.11]
54
53
jira-version : [1.0.10, 2.0.0]
55
54
architecture : [aarch64, ppc64le]
56
55
57
56
steps :
58
57
- name : Checkout code
59
- uses : actions/checkout@v3
60
- - name : Set up Python ${{ matrix.python-version }}
61
- uses : actions/setup-python@v4
62
- with :
63
- python-version : ${{ matrix.python-version }}
58
+ uses : actions/checkout@v4
64
59
- name : Set Jira version ${{ matrix.jira-version }}
65
- run : echo "JIRAVERSION=${{ matrix.jira-version }}" >> $GITHUB_ENV
60
+ run : echo "JIRAVERSION=${{ matrix.jira-version }}" >> " $GITHUB_ENV"
66
61
- name : Run tests on given architecture
67
62
uses : uraimo/run-on-arch-action@v3
68
63
with :
69
64
arch : ${{ matrix.architecture }}
70
- distro : ubuntu20.04
65
+ distro : ubuntu_latest
66
+ githubToken : ${{ github.token }}
71
67
env : |
72
68
# https://github.com/PyO3/setuptools-rust/issues/236
73
69
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
74
70
install : |
75
71
apt-get update -qq
76
-
77
- # ppc64le lacks the rust compiler needed to install cryptography
78
- # We can probably remove this once the pp64le image is updated.
79
- apt-get install -qq -y curl
80
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
81
- source $HOME/.cargo/env
82
-
83
72
apt-get install -qq -y \
84
73
git libffi-dev libjpeg-dev libssl-dev pandoc python3-pip taskwarrior
85
74
task --version
86
- pip3 install --upgrade pip
75
+ pip3 install --upgrade pip --break-system-packages
87
76
run : |
88
77
source $HOME/.cargo/env
89
78
apt-get install -qq -y pkg-config libssl-dev
90
- pip3 install .[all]
79
+ pip install .[all] --break-system-packages
91
80
pytest
0 commit comments