Skip to content

Commit

Permalink
CI: improve unit test workflow in CI, revert #2046 (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangchenli committed Oct 18, 2023
1 parent 4db8400 commit 6846643
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,43 @@ jobs:
test-general:
name: "Pytest"
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
fail-fast: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.python-version }}
cancel-in-progress: true
steps:
- name: "Checkout Infrastructure"
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channel-priority: strict
channels: conda-forge
channels: conda-forge,defaults
activate-environment: nebari-dev

- name: Install conda-build
run: |
conda install --quiet --yes conda-build
- name: Install Nebari
run: |
python --version
pip install -e .[dev]
conda install --quiet --yes conda-build
- name: Test Nebari
run: |
pytest --version
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
Expand Down

0 comments on commit 6846643

Please sign in to comment.