diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 08ccbf3..0f19288 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -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 diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index e3f8b06..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,27 +0,0 @@ -# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file -# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot - -version: 2 -updates: - - package-ecosystem: "pip" # See documentation for possible values - directory: "/" # Location of package manifests - schedule: - interval: "monthly" - # create a group of dependencies to be updated together in one pull request - groups: - # specify a name for the group, which will be used in pull request titles - # and branch names - dependencies: - # define patterns to include dependencies in the group (based on - # dependency name) - patterns: - - "*" # matches all dependencies in the package ecosystem - - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "monthly" - groups: - github-actions: - patterns: - - "*" # group all updates into a single larger pull request diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8fc7a28..b4fb4ef 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 }}