Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zhPavel committed Jan 9, 2024
1 parent 58299af commit 9d59835
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ on:
- "2.x/*"
workflow_dispatch:
inputs:
all_oses:
description: "Run only on linux or use try on all supported operating systems"
os:
description: "Operating systems"
required: true
default: false
type: boolean
default: linux
type: choice
options:
- linux
- all

permissions:
contents: read
Expand Down Expand Up @@ -67,12 +70,7 @@ jobs:
- { setup: 'pypy3.9', tox: 'pypy39' }
- { setup: 'pypy3.10', tox: 'pypy310' }

os: |-
${{
inputs.all_oses
&& ['ubuntu-latest', 'windows-latest', 'macos-latest']
|| ['ubuntu-latest']
}}
os: ${{ inputs.os == 'all' && ['ubuntu-latest', 'windows-latest', 'macos-latest'] || ['ubuntu-latest'] }}

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 9d59835

Please sign in to comment.