Add nox
as the CI manager
#1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: main | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
name: Python ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Setting up PDM | |
uses: pdm-project/setup-pdm@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setting up NOX | |
uses: wntrblm/[email protected] | |
with: | |
python-versions: ${{ matrix.python-version }} | |
- name: "Linting tests" | |
run: nox -s lint | |
- name: "Typing checks" | |
run: nox -s check | |
- name: "Unit Tests" | |
run: nox -s test |