build(deps): bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.1 #29
Workflow file for this run
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: Test Pull Request | |
on: | |
pull_request: | |
branches: | |
- main | |
# Required shell entrypoint to have properly activated conda environments | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
check: | |
name: Run checks for periodicity-detection on ubuntu with python 3.7 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v3.0.4 | |
with: | |
use-mamba: true | |
auto-update-conda: true | |
python-version: "3.7" | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.dev | |
- name: Typcheck with mypy | |
run: | | |
python setup.py typecheck | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --show-source --statistics | |
test: | |
name: Test periodicity-detection on ${{ matrix.os }} with python ${{ matrix.python_version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 3 | |
matrix: | |
os: [ubuntu-latest] # [ubuntu-latest, windows-latest, macOS-latest] | |
python_version: ["3.7", "3.11"] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v3.0.4 | |
with: | |
use-mamba: true | |
auto-update-conda: true | |
python-version: ${{ matrix.python_version }} | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.dev | |
- name: Test with pytest | |
run: | | |
python setup.py test | |
- name: Upload Coverage to Codecov | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
with: | |
files: coverage.xml | |
flags: unittests |