kcpevey / client_cookiecutter Goto Github PK
View Code? Open in Web Editor NEWclient_cookiecutter
client_cookiecutter
github workflow for pytest:
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
pytest:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up conda
uses: conda-incubator/setup-miniconda@master
with:
miniforge-variant: Miniforge3
miniforge-version: latest
activate-environment: env_name
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
channels: conda-forge
channel-priority: strict
- name: Install package
run: |
pip install -e .
- name: Conda list
run: conda list
- name: Create properties file
run: cat properties.tpl > ~/.properties
- name: Test with pytest
run: |
pytest tests -vvv -m "not local_required" --cov=package_name
name: Linting
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
pytest:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install pre-commit
run: |
pip install pre-commit jupyter pygments==2.10.0 markupsafe==2.0.1
- name: Run pre-commit hooks
run: pre-commit run --all
pre-commit file:
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.9.3
hooks:
- id: isort
args: ["--profile", "black"]
- repo: local
hooks:
- id: jupyter-nb-clear-output
name: jupyter-nb-clear-output
files: \.ipynb$
stages: [commit]
language: system
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
exclude: CHANGELOG.rst
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.