Skip to content

Commit 2b0b4ae

Browse files
authored
maintenance: review Github setup (#124)
1 parent 0d85371 commit 2b0b4ae

File tree

3 files changed

+11
-39
lines changed

3 files changed

+11
-39
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# These are supported funding model platforms
22

3-
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3+
github: [adbar]
44
patreon: # Replace with a single Patreon username
55
open_collective: # Replace with a single Open Collective username
66
ko_fi: adbarbaresi

.github/dependabot.yml

-27
This file was deleted.

.github/workflows/tests.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ jobs:
2222
include:
2323
# other OS version necessary
2424
- os: macos-latest
25-
python-version: "3.10"
25+
python-version: "3.12"
2626
- os: windows-latest
27-
python-version: "3.10"
27+
python-version: "3.12"
2828
steps:
29+
- uses: actions/checkout@v4
30+
2931
# Python and pip setup
3032
- name: Set up Python ${{ matrix.python-version }}
3133
uses: actions/setup-python@v5
@@ -37,8 +39,9 @@ jobs:
3739

3840
- name: Get pip cache dir
3941
id: pip-cache
42+
shell: bash
4043
run: |
41-
echo "::set-output name=dir::$(pip cache dir)"
44+
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
4245
4346
- name: pip cache
4447
uses: actions/cache@v4
@@ -48,11 +51,8 @@ jobs:
4851
restore-keys: |
4952
${{ runner.os }}-pip-
5053
51-
# package setup
52-
- uses: actions/checkout@v4
53-
5454
- name: Install dependencies
55-
run: python -m pip install -e ".[dev]"
55+
run: python -m pip install --upgrade -e ".[dev]"
5656

5757
# tests
5858
- name: Lint with flake8
@@ -62,12 +62,10 @@ jobs:
6262
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
6363
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
6464
65-
- name: Code format with black
65+
- name: Code format and type checking
66+
if: ${{ matrix.python-version == '3.13' }}
6667
run: |
6768
black --check --diff courlan
68-
69-
- name: Type checking with mypy
70-
run: |
7169
mypy -p courlan
7270
7371
- name: Test with pytest
@@ -76,6 +74,7 @@ jobs:
7674
7775
# coverage
7876
- name: Upload coverage to Codecov
77+
if: ${{ matrix.python-version == '3.13' }}
7978
uses: codecov/codecov-action@v4
8079
env:
8180
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)