feat: Updated .github/workflows/main.yml #14
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: GitHub Actions | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
with: | ||
python-version: 3.x | ||
- name: Install Poetry | ||
run: | | ||
- name: Add Poetry to PATH | ||
run: echo "$HOME/.poetry/bin" >> $GITHUB_PATH | ||
- name: Install Poetry | ||
run: curl -sSL https://install.python-poetry.org | python3 - | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
echo "$HOME/.poetry/bin" >> $GITHUB_PATH | ||
- name: Run isort with Poetry | ||
run: ~/.poetry/bin/poetry run isort . --check --diff |