๐๏ธ Update gitignore file #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events | |
push: | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
env: | |
TRAVIS: 'true' # Skip tests requiring data | |
strategy: | |
matrix: | |
python-version: | |
#- '3.6.9' # the one in production | |
#- '3.8' | |
- '3.9' | |
- '3' # latest | |
name: Python ${{ matrix.python-version }} | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Install system dependencies | |
run: | | |
sudo apt update | |
sudo apt install libmagickwand-dev inkscape libyaml-dev libxml2-dev libxslt-dev | |
sudo apt install rustc cargo # needed for pip cryptography in some python versions without egg | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: BSFishy/pip-action@v1 | |
with: | |
# cython: some versions need to compile numpy and numpy 1.22 does not provide proper build deps | |
packages: | | |
setuptools_rust | |
Flask | |
pytest | |
pytest-cov | |
coveralls | |
cython | |
- name: Install dependencies | |
run: | | |
pip install -e . | |
./setup.py compile_catalog | |
touch dbconfig.py | |
- name: Unit tests | |
run: | | |
pytest | |
- uses: actions/upload-artifact@master | |
if: failure() && hashFiles('b2bdata/*result*') | |
with: | |
name: b2b-results | |
path: | | |
b2bdata/*result* | |
- name: Coveralls | |
uses: AndreMiras/coveralls-python-action@develop | |
with: | |
parallel: true | |
flag-name: Unit tests | |
coveralls_finish: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Coveralls Finished | |
uses: AndreMiras/coveralls-python-action@develop | |
with: | |
parallel-finished: true |