Skip to content

Commit

Permalink
Rename environments.
Browse files Browse the repository at this point in the history
  • Loading branch information
janosg committed Jul 12, 2024
1 parent 152d57c commit 81b2574
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: run pytest
shell: bash -l {0}
run: |
micromamba activate estimagic
micromamba activate optimagic
pytest --cov-report=xml --cov=./
- name: Upload coverage report.
if: runner.os == 'Linux' && matrix.python-version == '3.10'
Expand Down Expand Up @@ -67,12 +67,12 @@ jobs:
- name: run pytest
shell: bash -l {0}
run: |
micromamba activate estimagic
micromamba activate optimagic
pytest -m "not slow and not jax"
run-tests-with-old-pandas:
# This job is only for testing if estimagic works with older pandas versions, as
# many pandas functions we use will be deprecated in pandas 3. estimagic's behavior
# for older verions is handled in src/estimagic/compat.py.
# This job is only for testing if optimagic works with older pandas versions, as
# many pandas functions we use will be deprecated in pandas 3. optimagic's behavior
# for older verions is handled in src/optimagic/compat.py.
name: Run tests for ${{ matrix.os}} on ${{ matrix.python-version }} with pandas 1
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -94,8 +94,8 @@ jobs:
- name: run pytest
shell: bash -l {0}
run: |
micromamba activate estimagic
pytest -m "not slow and not jax"
micromamba activate optimagic
pytest -m "not slow and not"
code-in-docs:
name: Run code snippets in documentation
runs-on: ubuntu-latest
Expand All @@ -105,15 +105,15 @@ jobs:
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ./.envs/testenv-linux.yml
environment-name: estimagic
environment-name: optimagic
cache-env: true
extra-specs: python=3.12
- name: run sphinx
shell: bash -l {0}
run: |-
micromamba activate estimagic
micromamba activate optimagic
cd docs/source
python -m doctest -v how_to_guides/how_to_constraints.md
python -m doctest -v how_to/how_to_constraints.md
run-mypy:
name: Run mypy
runs-on: ubuntu-latest
Expand All @@ -125,12 +125,12 @@ jobs:
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ./.envs/testenv-linux.yml
environment-name: estimagic
environment-name: optimagic
cache-env: true
extra-specs: |
python=3.10
- name: Run mypy
shell: bash -l {0}
run: |-
micromamba activate estimagic
micromamba activate optimagic
mypy

0 comments on commit 81b2574

Please sign in to comment.