mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-08 12:34:17 +00:00
azure pipelines -> github actions
This commit is contained in:
parent
66ecc5beb4
commit
a13cf6492e
3 changed files with 20 additions and 25 deletions
19
.github/workflows/main.yml
vendored
Normal file
19
.github/workflows/main.yml
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
name: main
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main, test-me-*]
|
||||||
|
tags:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main-windows:
|
||||||
|
uses: asottile/workflows/.github/workflows/tox.yml@v1.0.0
|
||||||
|
with:
|
||||||
|
env: '["py38"]'
|
||||||
|
os: windows-latest
|
||||||
|
main-linux:
|
||||||
|
uses: asottile/workflows/.github/workflows/tox.yml@v1.0.0
|
||||||
|
with:
|
||||||
|
env: '["py37", "py38", "py39", "py310"]'
|
||||||
|
os: ubuntu-latest
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
[](https://asottile.visualstudio.com/asottile/_build/latest?definitionId=17&branchName=main)
|
[](https://github.com/pre-commit/pre-commit-hooks/actions/workflows/main.yml)
|
||||||
[](https://dev.azure.com/asottile/asottile/_build/latest?definitionId=17&branchName=main)
|
|
||||||
[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit-hooks/main)
|
[](https://results.pre-commit.ci/latest/github/pre-commit/pre-commit-hooks/main)
|
||||||
|
|
||||||
pre-commit-hooks
|
pre-commit-hooks
|
||||||
|
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
trigger:
|
|
||||||
branches:
|
|
||||||
include: [main, test-me-*]
|
|
||||||
tags:
|
|
||||||
include: ['*']
|
|
||||||
|
|
||||||
resources:
|
|
||||||
repositories:
|
|
||||||
- repository: asottile
|
|
||||||
type: github
|
|
||||||
endpoint: github
|
|
||||||
name: asottile/azure-pipeline-templates
|
|
||||||
ref: refs/tags/v2.4.0
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
- template: job--python-tox.yml@asottile
|
|
||||||
parameters:
|
|
||||||
toxenvs: [py38]
|
|
||||||
os: windows
|
|
||||||
- template: job--python-tox.yml@asottile
|
|
||||||
parameters:
|
|
||||||
toxenvs: [py37, py38, py39, py310]
|
|
||||||
os: linux
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue