Skip to content

Commit

Permalink
fix: release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Dec 28, 2021
1 parent 25fb936 commit b70754b
Showing 1 changed file with 32 additions and 34 deletions.
66 changes: 32 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,44 @@ env:
PACKAGE_DIR: adbnx_adapter
TESTS_DIR: tests
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.6", "3.7", "3.8", "3.9", "3.10"]
name: Python ${{ matrix.python }}
steps:
- uses: actions/checkout@v2
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Setup pip
run: python -m pip install --upgrade pip setuptools wheel
- name: Install packages
run: pip install .[dev]
- name: Run black
run: black --check --verbose --diff --color ${{env.PACKAGE_DIR}} ${{env.TESTS_DIR}}
- name: Run flake8
run: flake8 ${{env.PACKAGE_DIR}} ${{env.TESTS_DIR}}
- name: Run isort
run: isort --check --profile=black ${{env.PACKAGE_DIR}} ${{env.TESTS_DIR}}
- name: Run mypy
run: mypy ${{env.PACKAGE_DIR}} ${{env.TESTS_DIR}}
- name: Run pytest
run: py.test --cov=${{env.PACKAGE_DIR}} --cov-report xml -v --color=yes --no-cov-on-fail --code-highlight=yes
- name: Publish to coveralls.io
if: matrix.python == '3.8'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python: ["3.6", "3.7", "3.8", "3.9", "3.10"]
# name: Python ${{ matrix.python }}
# steps:
# - uses: actions/checkout@v2
# - name: Setup Python ${{ matrix.python }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python }}
# - name: Setup pip
# run: python -m pip install --upgrade pip setuptools wheel
# - name: Install packages
# run: pip install .[dev]
# - name: Run black
# run: black --check --verbose --diff --color ${{env.PACKAGE_DIR}} ${{env.TESTS_DIR}}
# - name: Run flake8
# run: flake8 ${{env.PACKAGE_DIR}} ${{env.TESTS_DIR}}
# - name: Run isort
# run: isort --check --profile=black ${{env.PACKAGE_DIR}} ${{env.TESTS_DIR}}
# - name: Run mypy
# run: mypy ${{env.PACKAGE_DIR}} ${{env.TESTS_DIR}}
# - name: Run pytest
# run: py.test --cov=${{env.PACKAGE_DIR}} --cov-report xml -v --color=yes --no-cov-on-fail --code-highlight=yes
# - name: Publish to coveralls.io
# if: matrix.python == '3.8'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: coveralls --service=github

release:
needs: build
# needs: build
runs-on: ubuntu-latest
name: Release package
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Fetch complete history for all tags and branches
run: git fetch --prune --unshallow
Expand Down

0 comments on commit b70754b

Please sign in to comment.