-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.18 KB
/
Copy pathstaging.yml
File metadata and controls
46 lines (39 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Staging CI
run-name: Staging - Python ${{ github.event.inputs.python }} / ${{ github.event.inputs.os }} by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
python:
description: 'Python version'
required: true
default: '3.14'
os:
description: 'Operating System (ubuntu-20.04, ubuntu-latest, windows-latest)'
required: true
default: 'ubuntu-latest'
skip-lint:
description: 'Skip linting step'
required: false
default: 'false'
jobs:
build-test:
name: Build & Test - Python ${{ github.event.inputs.python }} on ${{ github.event.inputs.os }}
runs-on: ${{ github.event.inputs.os }}
steps:
- name: Git checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ github.event.inputs.python }}
- name: Install dependencies
run: |
pip install pipenv
pipenv install --dev
- name: Lint
if: ${{ github.event.inputs.skip-lint != 'true' }}
run: pipenv run python -m pylint switcher_client
- name: Test
run: pipenv run pytest -v