Skip to content

ci: Update release.yml #2

ci: Update release.yml

ci: Update release.yml #2

name: Build, lint and test
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
lint-and-test:
name: Build, lint and test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install hatch
run: |
python -m pip install hatch
- name: Lint
run: hatch run lint:check
- name: Tests
run: hatch run +py=${{ matrix.python-version }} test:test
- name: Build
run: hatch build