Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintenance: review Github setup #124

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: [adbar]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: adbarbaresi
Expand Down
27 changes: 0 additions & 27 deletions .github/dependabot.yml

This file was deleted.

21 changes: 10 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
include:
# other OS version necessary
- os: macos-latest
python-version: "3.10"
python-version: "3.12"
- os: windows-latest
python-version: "3.10"
python-version: "3.12"
steps:
- uses: actions/checkout@v4

# Python and pip setup
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand All @@ -37,8 +39,9 @@ jobs:

- name: Get pip cache dir
id: pip-cache
shell: bash
run: |
echo "::set-output name=dir::$(pip cache dir)"
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT

- name: pip cache
uses: actions/cache@v4
Expand All @@ -48,11 +51,8 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-

# package setup
- uses: actions/checkout@v4

- name: Install dependencies
run: python -m pip install -e ".[dev]"
run: python -m pip install --upgrade -e ".[dev]"

# tests
- name: Lint with flake8
Expand All @@ -62,12 +62,10 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

- name: Code format with black
- name: Code format and type checking
if: ${{ matrix.python-version == '3.13' }}
run: |
black --check --diff courlan

- name: Type checking with mypy
run: |
mypy -p courlan

- name: Test with pytest
Expand All @@ -76,6 +74,7 @@ jobs:

# coverage
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == '3.13' }}
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down