mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
upgrade CI to ubuntu-latest / windows-latest
This commit is contained in:
parent
777ffdd692
commit
3929fe4a63
3 changed files with 6 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ resources:
|
||||||
type: github
|
type: github
|
||||||
endpoint: github
|
endpoint: github
|
||||||
name: asottile/azure-pipeline-templates
|
name: asottile/azure-pipeline-templates
|
||||||
ref: refs/tags/v2.1.0
|
ref: refs/tags/v2.4.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- template: job--python-tox.yml@asottile
|
- template: job--python-tox.yml@asottile
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
. /etc/lsb-release
|
. /etc/lsb-release
|
||||||
if [ "$DISTRIB_CODENAME" = "bionic" ]; then
|
if [ "$DISTRIB_CODENAME" = "focal" ]; then
|
||||||
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'
|
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'
|
||||||
SWIFT_HASH='ac82ccd773fe3d586fc340814e31e120da1ff695c6a712f6634e9cc720769610'
|
SWIFT_HASH='2b4f22d4a8b59fe8e050f0b7f020f8d8f12553cbda56709b2340a4a3bb90cfea'
|
||||||
else
|
else
|
||||||
echo "unknown dist: ${DISTRIB_CODENAME}" 1>&2
|
echo "unknown dist: ${DISTRIB_CODENAME}" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
|
|
@ -173,6 +173,7 @@ def test_python_venv(tempdir_factory, store):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@xfailif_windows # pragma: win32 no cover # no python 2 in GHA
|
||||||
def test_switch_language_versions_doesnt_clobber(tempdir_factory, store):
|
def test_switch_language_versions_doesnt_clobber(tempdir_factory, store):
|
||||||
# We're using the python3 repo because it prints the python version
|
# We're using the python3 repo because it prints the python version
|
||||||
path = make_repo(tempdir_factory, 'python3_hooks_repo')
|
path = make_repo(tempdir_factory, 'python3_hooks_repo')
|
||||||
|
|
@ -892,6 +893,7 @@ def test_local_python_repo(store, local_python_config):
|
||||||
assert _norm_out(out) == b"3\n['filename']\nHello World\n"
|
assert _norm_out(out) == b"3\n['filename']\nHello World\n"
|
||||||
|
|
||||||
|
|
||||||
|
@xfailif_windows # pragma: win32 no cover # no python2 in GHA
|
||||||
def test_local_python_repo_python2(store, local_python_config):
|
def test_local_python_repo_python2(store, local_python_config):
|
||||||
local_python_config['hooks'][0]['language_version'] = 'python2'
|
local_python_config['hooks'][0]['language_version'] = 'python2'
|
||||||
hook = _get_hook(local_python_config, store, 'python3-hook')
|
hook = _get_hook(local_python_config, store, 'python3-hook')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue