Skip to content

Commit a29bde4

Browse files
committed
CI: update image
- ubuntu-20.04 was removed actions/runner-images#11101 - address actionlint comments - drop python versions from multiarch matrix (I realized they weren't being used anyway and the tests were all running python-3.8.)
1 parent 7f3b010 commit a29bde4

File tree

1 file changed

+13
-24
lines changed

1 file changed

+13
-24
lines changed

.github/workflows/bugwarrior.yml

+13-24
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request]
55

66
jobs:
77
bugwarrior-test:
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-latest
99
# We're currently seeing these complete in 1 minute.
1010
timeout-minutes: 5
1111
strategy:
@@ -14,13 +14,13 @@ jobs:
1414
jira-version: [1.0.10, 2.0.0]
1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v2
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
- 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"
2424
- name: Run tests
2525
run: |
2626
sudo apt-get update -qq
@@ -36,56 +36,45 @@ jobs:
3636
pytest --cov=bugwarrior --cov-branch tests
3737
flake8
3838
- name: Coverage
39-
uses: codecov/codecov-action@v1
39+
uses: codecov/codecov-action@v5
4040
with:
41-
file: ./.coverage
41+
files: ./.coverage
4242
# Fragile way to only run codecov once.
4343
# See https://github.com/codecov/codecov-action/issues/40.
4444
if: |
4545
matrix.python-version == 3.9 &&
4646
matrix.jira-version == '2.0.0'
4747
bugwarrior-multiarch-test:
48-
runs-on: ubuntu-20.04
48+
runs-on: ubuntu-latest
4949
# We're currently seeing these complete in 10-30 minutes.
5050
timeout-minutes: 60
5151
strategy:
5252
matrix:
53-
python-version: [3.8, 3.9, "3.10", 3.11]
5453
jira-version: [1.0.10, 2.0.0]
5554
architecture: [aarch64, ppc64le]
5655

5756
steps:
5857
- 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
6459
- 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"
6661
- name: Run tests on given architecture
6762
uses: uraimo/run-on-arch-action@v3
6863
with:
6964
arch: ${{ matrix.architecture }}
70-
distro: ubuntu20.04
65+
distro: ubuntu_latest
66+
githubToken: ${{ github.token }}
7167
env: |
7268
# https://github.com/PyO3/setuptools-rust/issues/236
7369
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
7470
install: |
7571
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-
8372
apt-get install -qq -y \
8473
git libffi-dev libjpeg-dev libssl-dev pandoc python3-pip taskwarrior
8574
task --version
86-
pip3 install --upgrade pip
75+
pip3 install --upgrade pip --break-system-packages
8776
run: |
8877
source $HOME/.cargo/env
8978
apt-get install -qq -y pkg-config libssl-dev
90-
pip3 install .[all]
79+
pip install .[all] --break-system-packages
9180
pytest

0 commit comments

Comments
 (0)