Skip to content

Commit

Permalink
Modernize workflows (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
einarf authored Nov 28, 2024
1 parent d2c689d commit e215368
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 26 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Lint

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
architecture: ['x64']

steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Lint with ruff
run: |
ruff check
- name: Test with pytest
run: |
# TODO: Figure out if we can run headless tests
pytest tests/test_docs.py
26 changes: 0 additions & 26 deletions .github/workflows/pythonpackage.yml

This file was deleted.

0 comments on commit e215368

Please sign in to comment.