Skip to content

Commit

Permalink
Python code checks (GitHub Action).
Browse files Browse the repository at this point in the history
  • Loading branch information
peteradrichem committed Jan 4, 2025
1 parent a300985 commit 1013b0f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python package
name: code checks

on:
push:
branches: [ "py3k" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.9", "3.11", "3.13"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.9"
cache: 'pip'
- name: Install dependencies
run: |
Expand Down
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Xul -- XML Utilities
:target: https://xul.readthedocs.io/en/stable/
:alt: Documentation

.. image:: https://github.com/peteradrichem/Xul/actions/workflows/code-checks.yml/badge.svg
:target: https://github.com/peteradrichem/Xul/
:alt: Code checks

Xul is a set of XML scripts written in Python.
Documentation can be found on `Read The Docs`_.

Expand Down
4 changes: 4 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Current version: |release|
:target: https://xul.readthedocs.io/en/stable/
:alt: Documentation

.. image:: https://github.com/peteradrichem/Xul/actions/workflows/code-checks.yml/badge.svg
:target: https://github.com/peteradrichem/Xul/
:alt: Code checks

.. index::
single: scripts

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ test = [
"isort~=5.13.2",
"lxml-stubs~=0.5.1",
"mypy~=1.14.1",
"ruff~=0.8.5",
"ruff~=0.8.6",
"types-Pygments~=2.18",
]
syntax = [
Expand Down

0 comments on commit 1013b0f

Please sign in to comment.