This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
Bump black from 24.3.0 to 24.4.0 #474
Workflow file for this run
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: "CI v2" | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
name: "Lint" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
- name: Upgrade pip | |
run: pip install --upgrade pip | |
- name: Install dependencies | |
run: python -m pip install .[lint] | |
- name: black | |
run: black --check . | |
- name: ruff | |
run: ruff check . | |
test: | |
name: "Python ${{ matrix.python-version}} Test" | |
needs: [lint] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade pip | |
run: pip install --upgrade pip | |
- name: Install dependencies | |
run: python -m pip install .[test] | |
- name: Test with pytest | |
run: pytest --cov=ignition tests/ | |
test-build: | |
name: "Test package build" | |
needs: [test] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
- name: Upgrade pip | |
run: pip install --upgrade pip | |
- name: Install dependencies | |
run: python -m pip install .[build] | |
- name: Build | |
run: python -m build | |
check_status: | |
name: "All Tests Passed Gate" | |
needs: [test-build] | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "All tests completed" | |