Compare commits

..

2 Commits

Author SHA1 Message Date
Daniel Sagi
c16c997e47 removed cache and changed to only use ubuntu-latest 2021-09-30 16:32:04 +03:00
Daniel Sagi
a22debaa4e removed unsupported ubuntu16 machines 2021-09-30 16:07:22 +03:00
5 changed files with 12 additions and 29 deletions

View File

@@ -77,10 +77,9 @@ jobs:
python-version: '3.9'
- name: Install dependencies
shell: bash
run: |
pip install -U pip
make deps
python -m pip install -U pip
python -m pip install -r requirements-dev.txt
- name: Build project
shell: bash

View File

@@ -10,7 +10,7 @@ name: Release
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
@@ -18,14 +18,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: '3.9'
- name: Install dependencies
shell: bash
run: |
pip install -U pip
pip install pyinstaller
make deps
python -m pip install -U pip
python -m pip install -r requirements-dev.txt
- 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-20.04, ubuntu-18.04]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
@@ -23,26 +23,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
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
python -m pip install -U pip
python -m pip install -e .
- name: Test
shell: bash

View File

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

View File

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