Skip to content

Merge pull request #58 from ACCESS-NRI/dependabot/github_actions/acti… #129

Merge pull request #58 from ACCESS-NRI/dependabot/github_actions/acti…

Merge pull request #58 from ACCESS-NRI/dependabot/github_actions/acti… #129

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
environment-file: ci/environment-${{ matrix.python-version }}.yml
activate-environment: intake-df-cat-test
auto-activate-base: false
- name: Test build distribution
shell: bash -l {0}
run: |
git clean -xdf
pyproject-build
- name: Install source
shell: bash -l {0}
run: python -m pip install -e .
- name: List installed packages
shell: bash -l {0}
run: conda list
- name: Run tests
shell: bash -l {0}
run: python -m pytest -s .
- name: Upload code coverage
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml