Skip to content

Commit

Permalink
maintenance: review Github setup (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar authored Dec 2, 2024
1 parent 0d85371 commit 2b0b4ae
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 39 deletions.
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

0 comments on commit 2b0b4ae

Please sign in to comment.