Add core library code. #2
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
name: check | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
# testing job configuration and steps | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# the python versions that need to be tested on | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- name: 1. Checkout the code... | |
uses: actions/checkout@v3 | |
- name: 2. Configure Python version ${{ matrix.python-version }}... | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: "x64" | |
- name: 3. Install package... | |
run: | | |
python -m pip install -U pip | |
python -m pip install -e ".[dev,ml]" | |
- name: 4. Run the tests... | |
run: | | |
python -m pytest . | |
# linting job configuration and steps | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# only need to lint the latest version | |
python-version: ["3.11"] | |
steps: | |
- name: 1. Checkout the code... | |
uses: actions/checkout@v3 | |
- name: 2. Configure Python version ${{ matrix.python-version }}... | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: "x64" | |
- name: 3. Run the linters... | |
uses: pre-commit/[email protected] |