Add linux label to runs-on for runner selection
This commit is contained in:
@@ -12,7 +12,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: docker
|
runs-on: [linux, docker]
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -31,7 +31,7 @@ jobs:
|
|||||||
run: black --check app tests scripts
|
run: black --check app tests scripts
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: docker
|
runs-on: [linux, docker]
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -48,7 +48,7 @@ jobs:
|
|||||||
run: pytest -q tests -v
|
run: pytest -q tests -v
|
||||||
|
|
||||||
type-check:
|
type-check:
|
||||||
runs-on: docker
|
runs-on: [linux, docker]
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: docker
|
runs-on: [linux, docker]
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -30,7 +30,7 @@ jobs:
|
|||||||
run: black --check app tests scripts
|
run: black --check app tests scripts
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: docker
|
runs-on: [linux, docker]
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -47,7 +47,7 @@ jobs:
|
|||||||
run: pytest -q tests -v
|
run: pytest -q tests -v
|
||||||
|
|
||||||
type-check:
|
type-check:
|
||||||
runs-on: docker
|
runs-on: [linux, docker]
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -65,7 +65,7 @@ jobs:
|
|||||||
run: mypy app scripts --ignore-missing-imports
|
run: mypy app scripts --ignore-missing-imports
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: [linux, docker]
|
||||||
needs: [lint, test, type-check]
|
needs: [lint, test, type-check]
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
@@ -93,7 +93,7 @@ jobs:
|
|||||||
provenance: false
|
provenance: false
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: docker
|
runs-on: [linux, docker]
|
||||||
needs: build
|
needs: build
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
container:
|
container:
|
||||||
|
|||||||
Reference in New Issue
Block a user