diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9631b1e..54b4bce 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -77,9 +77,10 @@ jobs: python-version: '3.9' - name: Install dependencies + shell: bash run: | - python -m pip install -U pip - python -m pip install -r requirements-dev.txt + pip install -U pip + make deps - name: Build project shell: bash diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fac4bf7..ea044c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ name: Release jobs: build: name: Upload Release Asset - runs-on: ubuntu-16.04 + runs-on: ubuntu-18.04 steps: - name: Checkout code uses: actions/checkout@v2 @@ -18,12 +18,14 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.9' + python-version: '3.8' - name: Install dependencies + shell: bash run: | - python -m pip install -U pip - python -m pip install -r requirements-dev.txt + pip install -U pip + pip install pyinstaller + make deps - name: Build project shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 94f8ca8..b2efcc7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: python-version: ["3.6", "3.7", "3.8", "3.9"] - os: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04] + os: [ubuntu-20.04, ubuntu-18.04] steps: - uses: actions/checkout@v2 @@ -38,11 +38,11 @@ jobs: ${{ matrix.os }}-${{ matrix.python-version }}- - name: Install dependencies + shell: bash run: | - python -m pip install -U pip - python -m pip install -U wheel - python -m pip install -r requirements.txt - python -m pip install -r requirements-dev.txt + pip install -U pip + make dev-deps + make install - name: Test shell: bash diff --git a/Makefile b/Makefile index 650bb7a..8bd4ba1 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ lint-check: .PHONY: test test: - pytest + python -m pytest .PHONY: build build: diff --git a/requirements-dev.txt b/requirements-dev.txt index f6f69a7..701355b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,3 @@ --r requirements.txt - flake8 pytest >= 2.9.1 requests-mock >= 1.8