Skip to content

Commit

Permalink
try to be more DRY on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
waisbrot committed Aug 9, 2020
1 parent 49ddf39 commit fcbfb1a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Python
- &python-init name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8

- name: Install dependencies with poetry
- &python-deps name: Install Python dependencies
run: |
pip install poetry
poetry install
- run: poetry run isort --recursive --diff
- run: poetry run black --check .
- run: poetry run flake8
Expand All @@ -32,10 +29,8 @@ jobs:
needs: test
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- *python-init
- *python-deps
- name: Build package
run: poetry build
- name: Publish package
Expand Down

0 comments on commit fcbfb1a

Please sign in to comment.