Skip to content

Commit

Permalink
💚 Enable CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 31, 2024
1 parent efc0635 commit 758fb83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- windows-latest
runs-on: ${{matrix.runs-on}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{env.python-version}}
cache: ${{env.cache}}
Expand All @@ -44,9 +44,10 @@ jobs:
- name: Test
run: |
pytest --cov
- uses: codecov/codecov-action@v3
- uses: codecov/codecov-action@v4

build:
# needs: test
needs: test
strategy:
fail-fast: false
matrix:
Expand All @@ -56,8 +57,8 @@ jobs:
- windows-latest
runs-on: ${{matrix.runs-on}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{env.python-version}}
cache: ${{env.cache}}
Expand All @@ -74,12 +75,12 @@ jobs:
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
with:
password: ${{secrets.PYPI_API_TOKEN}}
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: runner.os == 'Linux' && ! startsWith(github.ref, 'refs/tags/')
with:
path: |
dist/*
- uses: softprops/action-gh-release@v1
- uses: softprops/action-gh-release@v2
if: runner.os == 'Linux' && startsWith(github.ref, 'refs/tags/')
with:
# body_path: build/CHANGELOG.md
Expand Down
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ exclude: ^templates/|\.json$

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: fix-byte-order-marker
Expand Down Expand Up @@ -47,15 +47,15 @@ repos:
hooks:
- id: check-mailmap
- repo: https://github.com/rhysd/actionlint
rev: v1.7.2
rev: v1.7.5
hooks:
- id: actionlint
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
rev: 0.7.21
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -69,18 +69,18 @@ repos:
- mdformat-config
- mdformat-web
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.14.0
rev: v0.17.0
hooks:
- id: markdownlint-cli2
additional_dependencies:
- markdown-it-texmath
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.7
rev: v0.8.4
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/kumaraditya303/mirrors-pyright
rev: v1.1.381
rev: v1.1.391
hooks:
- id: pyright

Expand Down

0 comments on commit 758fb83

Please sign in to comment.