Skip to content

Commit

Permalink
Move from tox to ruff in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
daffidwilde committed Oct 21, 2023
1 parent b3bb14e commit 7af81c0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 30 deletions.
33 changes: 26 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: CI
on: [push, pull_request]
on:
pull_request:
push:
branches:
- "main"
- "dev*"

jobs:
build:
Expand All @@ -9,7 +14,7 @@ jobs:
max-parallel: 8
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]

steps:
- name: Check out repository
Expand All @@ -19,13 +24,27 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"

- name: Update pip
- name: Update pip and install dependencies
run: |
python -m pip install --upgrade pip
- name: Install tox
python -m pip install ".[test]"
- name: Run tests
run: |
python -m pip install tox tox-gh-actions
- name: Run tox
python -m doctest README.md
python -m doctest paper.md
python -m pytest docs \
--nbval --nbval-current-env -p no:randomly
python -m pytest tests \
--cov=matching --cov-fail-under=100 --hypothesis-profile=ci
- name: Install and run linters (3.11-ubuntu only)
if: |
matrix.python-version == '3.11' &&
matrix.os == 'ubuntu-latest'
run: |
python -m tox
python -m pip install ".[lint]"
python -m black --check .
python -m ruff check .
23 changes: 0 additions & 23 deletions tox.ini

This file was deleted.

0 comments on commit 7af81c0

Please sign in to comment.