Update Flake8 action #85
Workflow file for this run
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 suite | ||
on: | ||
push: | ||
pull_request: | ||
types: ["opened", "synchronize", "reopened"] | ||
jobs: | ||
flake8: | ||
name: flake8 | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Checkout to master | ||
uses: actions/checkout@v3 | ||
- name: Setup python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
architecture: 'x64' | ||
- name: flake8 Lint | ||
uses: reviewdog/action-flake8@v3 | ||
with: | ||
reporter: github-pr-review | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
platform: | ||
name: 💻 Platform-${{ matrix.os }} | ||
needs: [ flake8 ] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- name: Checkout to master | ||
uses: actions/checkout@v2 | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
architecture: 'x64' | ||
- name: Development setup on ${{ matrix.os }} | ||
run: | | ||
python -m pip install pip --upgrade | ||
pip install -e . | ||
python -c "import pkg_resources; print(pkg_resources.get_distribution('ocviapy').version)" | ||
python -c "from ocviapy import get_associated_pods, get_routes, get_json" | ||
package: | ||
name: ⚙️ Build and Verify Package | ||
runs-on: ubuntu-latest | ||
needs: [ flake8 ] | ||
steps: | ||
- name: Checkout to master | ||
uses: actions/checkout@v2 | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
architecture: 'x64' | ||
- name: Twine checks | ||
run: | | ||
python -m pip install pip twine setuptools wheel --upgrade | ||
python setup.py sdist bdist_wheel | ||
ls -l dist | ||
python -m twine check dist/* |