1
0
Fork 0
operator-repo/.github/workflows/tox.yaml

46 lines
966 B
YAML
Raw Normal View History

2023-08-18 17:41:54 +00:00
name: Run tox
on:
2023-08-18 18:11:38 +00:00
push:
paths-ignore:
- README.md
- .pre-commit-config.yaml
- .gitignore
pull_request:
paths-ignore:
- README.md
- .pre-commit-config.yaml
- .gitignore
2023-08-18 17:41:54 +00:00
jobs:
2023-08-19 09:26:58 +00:00
lint:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up PDM
uses: pdm-project/setup-pdm@v3
- name: Install dependencies
run: pdm install -d -G lint -G test
- name: Test with tox
run: pdm run tox -e pylint,mypy,bandit
unit-tests:
name: Unit tests
needs: lint
2023-08-18 17:41:54 +00:00
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up PDM
2023-08-18 18:22:06 +00:00
uses: pdm-project/setup-pdm@v3
2023-08-18 17:41:54 +00:00
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
2023-08-19 09:26:58 +00:00
run: pdm install -d -G test
2023-08-18 17:41:54 +00:00
- name: Test with tox
run: pdm run tox