Fixing Github action to use Rye: Take 4. #22
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: Fauxfactory Checks | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/checkout@v4 | ||
- name: Install a specific version | ||
uses: eifinger/setup-rye@v2 | ||
- name: Install dependencies | ||
run: | | ||
rye sync | ||
- name: Pre Commit Checks | ||
uses: pre-commit/[email protected] | ||
- name: Run checks | ||
run: | | ||
make all | ||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v1 |