antarcticrainforest is testing the cli 🧉 #69
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: CLI Test | |
run-name: ${{ github.actor }} is testing the cli 🧉 | |
on: [push, workflow_call] | |
jobs: | |
linting: | |
name: Basic check lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
- name: Install packages | |
run: | | |
python3 -m pip install tox | |
mkdir .mypy_cache | |
- name: Checking code style | |
run: tox run-parallel --skip-env test --parallel-no-spinner | |
testing: | |
env: | |
NUMEXPR_MAX_THREADS: 8 | |
JUPYTER_PLATFORM_DIRS: 1 | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setting up mamba | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: install-kernelspec | |
python-version: ${{matrix.python-version}} | |
environment-file: environment.yml | |
auto-activate-base: false | |
- name: Running tests with tox | |
run: tox -e test -q | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
dependabot: | |
name: Merge PR by dependabot | |
runs-on: ubuntu-latest | |
needs: [linting, testing] | |
if: github.event.pull_request.user.login == 'dependabot[bot]' | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/fetch-metadata@v1 | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Approve dependabot's PR | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.DEPENDABOT_TOKEN}} | |
- name: Auto-merge for dependabot's PR | |
run: gh pr merge --merge --auto "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.DEPENDABOT_TOKEN}} |