Enhance file operations #379
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: | |
pull_request: | |
push: | |
jobs: | |
pre-commit: | |
name: Pre-commit checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
- name: Run pre-commit | |
uses: pre-commit/action@v2.0.0 | |
with: | |
extra_args: --all-files | |
# tests: | |
# name: Run tests | |
# runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# python-version: ["3.8", "3.9", "3.10", "3.11"] | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v2 | |
# - name: Install Python | |
# uses: actions/setup-python@v2 | |
# with: | |
# python-version: ${{ matrix.python-version }} | |
# - name: Install poetry | |
# uses: abatilo/actions-poetry@v2.0.0 | |
# with: | |
# poetry-version: "1.3.1" | |
# - name: Run tests with poetry and pytest | |
# run: | | |
# poetry install | |
# poetry run pytest |