Skip to content

Commit 922dd21

Browse files
author
wim glenn
committed
interoperability with black 2024 style
1 parent 1ab1be5 commit 922dd21

13 files changed

+136
-417
lines changed

.github/workflows/main.yml

+27-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,33 @@
1-
name: main
1+
name: tests
22

33
on:
44
push:
5-
branches: [main, test-me-*]
6-
tags: '*'
5+
branches: ["main"]
76
pull_request:
7+
branches: ["main"]
8+
workflow_dispatch:
89

910
jobs:
10-
main:
11-
uses: asottile/workflows/.github/workflows/[email protected]
12-
with:
13-
env: '["py38", "py39"]'
11+
tests:
12+
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, macos-latest, windows-latest]
19+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
20+
21+
steps:
22+
- uses: "actions/checkout@v4"
23+
- uses: "actions/setup-python@v5"
24+
with:
25+
python-version: "${{ matrix.python-version }}"
26+
- name: "Install"
27+
run: "pip install --editable . pytest pytest-cov"
28+
- name: "Run tests for ${{ matrix.python-version }} on ${{ matrix.os }}"
29+
run: pytest --cov=reorder_python_imports
30+
- name: Upload coverage to Codecov
31+
uses: "codecov/codecov-action@v3"
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

-5
This file was deleted.

.pre-commit-config.yaml

-42
This file was deleted.

0 commit comments

Comments
 (0)