CI for Python #8
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 for Python | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: 0 0 * * 1 | |
jobs: | |
linter_and_test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
max-parallel: 10 | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: 'x64' | |
- name: Setup rye | |
uses: sksat/[email protected] | |
- name: Install original package | |
run: rye sync | |
- name: Run the formatter | |
run: rye fmt -- --diff | |
- name: Run the linter | |
run: rye lint --fix |