Compare commits

..

7 Commits

Author SHA1 Message Date
Daniel Sagi
d50f78cadc fixed pytest 2021-10-16 17:17:31 +03:00
Daniel Sagi
f294c633cb removed -e . from req dev txt file 2021-10-15 21:32:00 +03:00
Daniel Sagi
1dcad5f89e added make install in test workflow 2021-10-15 21:30:34 +03:00
Daniel Sagi
153f5abbce added -e . to end of requirements dev file 2021-10-15 21:26:40 +03:00
Daniel Sagi
7fae4ced86 removed reference from requirements dev file 2021-10-15 21:23:54 +03:00
Daniel Sagi
48b2ee30f3 changed to dev-deps in make 2021-10-15 21:22:18 +03:00
Daniel Sagi
798cd62da9 fixed all of workflows 2021-10-15 21:20:51 +03:00
5 changed files with 30 additions and 13 deletions

View File

@@ -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

View File

@@ -10,7 +10,7 @@ name: Release
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
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

View File

@@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9"]
os: [ubuntu-latest]
os: [ubuntu-20.04, ubuntu-18.04]
steps:
- uses: actions/checkout@v2
@@ -23,10 +23,26 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Get pip cache dir
id: pip-cache
run: |
python -m pip install -U pip
python -m pip install -e .
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache
uses: actions/cache@v2
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements-dev.txt') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-
- name: Install dependencies
shell: bash
run: |
pip install -U pip
make dev-deps
make install
- name: Test
shell: bash

View File

@@ -31,7 +31,7 @@ lint-check:
.PHONY: test
test:
pytest
python -m pytest
.PHONY: build
build:

View File

@@ -1,5 +1,3 @@
-r requirements.txt
flake8
pytest >= 2.9.1
requests-mock >= 1.8