Skip to content

Commit 3929fe4

Browse files
committed
upgrade CI to ubuntu-latest / windows-latest
1 parent 777ffdd commit 3929fe4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resources:
1010
type: github
1111
endpoint: github
1212
name: asottile/azure-pipeline-templates
13-
ref: refs/tags/v2.1.0
13+
ref: refs/tags/v2.4.1
1414

1515
jobs:
1616
- template: job--python-tox.yml@asottile

testing/get-swift.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
set -euo pipefail
44

55
. /etc/lsb-release
6-
if [ "$DISTRIB_CODENAME" = "bionic" ]; then
7-
SWIFT_URL='https://swift.org/builds/swift-5.1.3-release/ubuntu1804/swift-5.1.3-RELEASE/swift-5.1.3-RELEASE-ubuntu18.04.tar.gz'
8-
SWIFT_HASH='ac82ccd773fe3d586fc340814e31e120da1ff695c6a712f6634e9cc720769610'
6+
if [ "$DISTRIB_CODENAME" = "focal" ]; then
7+
SWIFT_URL='https://download.swift.org/swift-5.6.1-release/ubuntu2004/swift-5.6.1-RELEASE/swift-5.6.1-RELEASE-ubuntu20.04.tar.gz'
8+
SWIFT_HASH='2b4f22d4a8b59fe8e050f0b7f020f8d8f12553cbda56709b2340a4a3bb90cfea'
99
else
1010
echo "unknown dist: ${DISTRIB_CODENAME}" 1>&2
1111
exit 1

tests/repository_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ def test_python_venv(tempdir_factory, store):
173173
)
174174

175175

176+
@xfailif_windows # pragma: win32 no cover # no python 2 in GHA
176177
def test_switch_language_versions_doesnt_clobber(tempdir_factory, store):
177178
# We're using the python3 repo because it prints the python version
178179
path = make_repo(tempdir_factory, 'python3_hooks_repo')
@@ -892,6 +893,7 @@ def test_local_python_repo(store, local_python_config):
892893
assert _norm_out(out) == b"3\n['filename']\nHello World\n"
893894

894895

896+
@xfailif_windows # pragma: win32 no cover # no python2 in GHA
895897
def test_local_python_repo_python2(store, local_python_config):
896898
local_python_config['hooks'][0]['language_version'] = 'python2'
897899
hook = _get_hook(local_python_config, store, 'python3-hook')

0 commit comments

Comments
 (0)