Remove redundant functions and rename (#15) #35
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 workflow will install Python dependencies, run tests, lint, and build docs | |
# This run for every pull request | |
name: Tests and Lint | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip setuptools black mypy types-requests numpy | |
- name: Black Formatting | |
run: | | |
python3 -m black . --check | |
- name: Lint with mypy | |
run: | | |
python3 -m mypy src/neospy/ | |
- name: Build neospy | |
run: | | |
python3 -m pip install '.[dev]' -v | |
- name: Test with pytest | |
run: | | |
python3 -m pytest --cov-report term-missing --cov=neospy | |
- name: Test with cargo | |
run: | | |
cargo test |