diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml deleted file mode 100644 index 6a018ca..0000000 --- a/.github/workflows/check.yaml +++ /dev/null @@ -1,48 +0,0 @@ -name: lint & test - -on: - push: - branches: [dev] - pull_request: - branches: [dev] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] - - steps: - - uses: actions/checkout@v4 - - - name: Install rye - uses: eifinger/setup-rye@v1 - id: setup-rye - with: - enable-cache: true - cache-prefix: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }} - - - name: set rye python - run: | - rye pin cpython@${{ matrix.python-version }} - - - name: Install dependencies - if: steps.setup-rye.outputs.cache-hit == 'true' - run: | - rye sync --all-features - - - name: Load cached pre-commit - id: cached-pre-commit-dependencies - uses: actions/cache@v4 - with: - path: ~/.cache/pre-commit - key: precommit-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('.pre-commit-config.yaml') }} - - - name: Code checks - run: | - rye run pre-commit run --all-files --show-diff-on-failure - - - name: Test with pytest - run: | - rye run pytest