Merge pull request #340 from kozistr/update/codes #1294
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
OMP_NUM_THREADS: 2 | |
MKL_NUM_THREADS: 2 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip --disable-pip-version-check install --no-compile -r requirements-dev.txt | |
- name: Check lint | |
run: make check | |
- name: Check test | |
env: | |
PYTHONDONTWRITEBYTECODE: 1 | |
run: make test | |
- name: Check codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
directory: ./ | |
files: ./coverage.xml | |
env_vars: OS,PYTHON | |
fail_ci_if_error: true | |
verbose: false |