Skip to content

FIX: fixing actions #95

FIX: fixing actions

FIX: fixing actions #95

Workflow file for this run

name: sekupy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-min.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
sudo apt-get install swig build-essential gfortran python3-dev python-tk
- name: Install dependencies with pip
run: |
python -m pip install --upgrade pip
pip install -U numpy blosc
pip install cython wheel
pip install flake8 pytest pytest-cov
pip install tk cytoolz
- name: Install package requirements.txt
run: |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
python -m pytest --pyargs sekupy --cov=sekupy
- uses: codecov/codecov-action@v1
if: success()
name: 'Upload coverage to CodeCov'