Skip to content

Bump actions/checkout from 5.0.0 to 6.0.0 #388

Bump actions/checkout from 5.0.0 to 6.0.0

Bump actions/checkout from 5.0.0 to 6.0.0 #388

Workflow file for this run

name: build
on:
pull_request:
branches: [ "main" ]
paths-ignore: [ '**.md', 'docs/**' ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9"]
runs-on: ${{ matrix.os }}
permissions:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- name: Set up Python
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: |
pip install pip==25.3
pip install build==1.3.0
- name: Build package
run: |
python -m build
- name: Install package
run: |
pip install .
- name: Test with pytest
env:
# This token is provided by Actions,
# you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install ".[test]"
coverage run -m pytest
coverage xml -o coverage/python.xml