Create codespell_and_ruff.yml #47
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
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
# ubuntu-22 doesnt support Python 2.7, 3.5, and 3.6 | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10'] | |
name: main | |
steps: | |
- uses: actions/checkout@v4 | |
- if: matrix.python-version != '2.7' | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- if: matrix.python-version == '2.7' | |
run: sudo ln -sf /usr/bin/python2.7 /usr/bin/python && curl -sSL https://bootstrap.pypa.io/pip/2.7/get-pip.py | python | |
- name: clean .coverage | |
shell: bash | |
run: find . -name .coverage -delete | |
- name: Run tox with tox-gh-actions | |
uses: ymyzk/run-tox-gh-actions@main |