Let isort move imports around #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: Test on MacOS | |
on: | |
push: | |
paths-ignore: | |
- docs/** | |
branches-ignore: | |
- dependabot/** | |
- deepsource** | |
pull_request: | |
paths-ignore: | |
- docs/** | |
permissions: | |
contents: read | |
jobs: | |
test-osx: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
requirements: [latest] | |
python-version: | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: pip | |
cache-dependency-path: requirements/*.txt | |
- name: Install brew dependencies | |
run: | | |
brew install gettext | |
echo "/usr/local/opt/gettext/bin" >> $GITHUB_PATH | |
- name: Update pip | |
run: pip install --upgrade pip wheel | |
- name: Install pip dependencies | |
if: matrix.requirements == 'latest' | |
run: pip install -r requirements/test.txt | |
- name: Install | |
run: pip install . | |
- name: pytest | |
run: make test | |
- name: test-functional | |
run: make test-functional | |
- name: Coverage | |
run: | | |
coverage xml | |
- uses: codecov/codecov-action@v3 | |
with: | |
name: ${{ runner.os }}, Python ${{ matrix.python-version }}, ${{ matrix.requirements }} |