Bump black from 19.10b0 to 24.3.0 #62
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: | |
pull_request: | |
branches: [main] | |
# schedule: | |
# - cron: '0 0 * * 0' # weekly | |
jobs: | |
run: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest] | |
python-version: [3.8] | |
env: | |
OS: ${{ matrix.os }} | |
PYTHON: ${{ matrix.python-version }} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@main | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Add conda to system path | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
eval "$(conda shell.bash hook)" | |
conda env create --file environment.yml | |
# - name: Build | |
# eval "$(conda shell.bash hook)" | |
# pip install -e . | |
- name: Test and generate coverage | |
run: | | |
eval "$(conda shell.bash hook)" | |
conda activate wikirec-dev | |
python -m nltk.downloader names | |
export PYTHONPATH="./src" | |
pytest --cov=src tests --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
fail_ci_if_error: true |