Bump psutil from 5.9.6 to 5.9.8 (#216) #366
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
# | |
# Copyright © 2022-present Peter M. Stahl pemistahl@gmail.com | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either expressed or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: build | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'poetry.lock' | |
- 'pyproject.toml' | |
- '.github/**' | |
- 'lingua/**' | |
- 'scripts/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'poetry.lock' | |
- 'pyproject.toml' | |
- '.github/**' | |
- 'lingua/**' | |
- 'scripts/**' | |
jobs: | |
python-build: | |
name: Python ${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Poetry | |
uses: abatilo/actions-poetry@v3 | |
with: | |
poetry-version: 1.7 | |
- name: Set up virtual environment | |
run: poetry env use ${{ matrix.python-version }} | |
- name: Install project dependencies | |
run: poetry install --no-root --only dev | |
- name: Check static types | |
run: poetry run mypy | |
- name: Check code formatting | |
run: poetry run black --check . |