fix: rename sqlite3.py to sqlite3_utils.py and correct imports - avoi… #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
concurrency: | |
group: ci-check-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft != true | |
strategy: | |
matrix: | |
"python-version": ["3.7", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: "Install Poetry" | |
run: "pip install poetry" | |
- name: "Setup Python" | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ matrix.python-version }}" | |
cache: "poetry" | |
- name: "Install poetry dependencies" | |
run: "poetry install --no-interaction" | |
- run: "pip install pre-commit" | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: "Run pre-commit" | |
run: pre-commit run --show-diff-on-failure --color=always --hook-stage push |