Skip to content

Commit

Permalink
update actions and modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
AbstractUmbra committed Jan 4, 2025
1 parent b71983d commit 39e56fa
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/coverage_lint_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
python-version: ["3.11", "3.x"]

steps:
- name: Checkout
Expand Down Expand Up @@ -84,31 +84,30 @@ jobs:
name: "Type Coverage and Linting @ ${{ matrix.python-version }}"
steps:
- name: "Checkout Repository"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: dev/3.0

- name: "Setup Python @ ${{ matrix.python-version }}"
id: setup-python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
cache: "pip"

- name: "Install Python deps @ ${{ matrix.python-version }}"
id: install-deps
run: |
pip install -Ur requirements.txt starlette uvicorn
- name: "Run Pyright @ ${{ matrix.python-version }}"
uses: jakebailey/pyright-action@v1
uses: jakebailey/pyright-action@v2
with:
no-comments: ${{ matrix.python-version != '3.x' }}
annotate: ${{ matrix.python-version != '3.x' }}
warnings: false

- name: Lint with Ruff
if: ${{ always() && steps.install-deps.outcome == 'success' }}
uses: chartboost/ruff-action@v1
uses: astral-sh/ruff-action@v3

upload_pypi:
if: github.event_name == 'push' && github.ref_type == 'tag'
Expand All @@ -130,4 +129,4 @@ jobs:
find . -name '*.whl' -exec mv '{}' dist/ \;
- uses: pypa/gh-action-pypi-publish@release/v1
name: Publish to PyPI
name: Publish to PyPI

0 comments on commit 39e56fa

Please sign in to comment.