Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove requirements-dev.txt #504

Merged
merged 3 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@ on:
branches:
- main

# Default to bash in login mode; key to activating conda environment
# https://github.com/mamba-org/provision-with-micromamba#IMPORTANT
defaults:
run:
shell: "bash -l {0}"

permissions:
contents: write
pages: write

env:
MICROMAMBA_VERSION: 'latest'

jobs:
build:
name: Deploy docs
Expand All @@ -19,19 +28,15 @@ jobs:
submodules: "recursive"
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
architecture: 'x64'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip # install pip
python3 -m pip install -r requirements-dev.txt # install dev deps
uses: "mamba-org/setup-micromamba@v1"
with:
micromamba-version: "${{ env.MICROMAMBA_VERSION }}"
environment-file: "environments/dev-environment.yaml"
cache-environment: true

- name: Install conda-lock
run: |
python3 -m pip install .
run: "pip install ."

- name: Build site
run: mkdocs build
Expand All @@ -42,4 +47,4 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
user_email: 'github-actions[bot]@users.noreply.github.com'
25 changes: 2 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,10 @@ jobs:
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: ${{ env.MICROMAMBA_VERSION }}
environment-name: test-env
environment-file: environments/dev-environment.yaml
init-shell: powershell
create-args: >-
python=3.11
mamba
pip
pytest-cov
pytest-xdist

- name: Install dev deps
run: |
python -m pip install -r requirements-dev.txt

- name: install conda-lock
run: |
Expand Down Expand Up @@ -78,23 +70,10 @@ jobs:
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: ${{ env.MICROMAMBA_VERSION }}
environment-name: test-env
environment-file: environments/dev-environment.yaml
init-shell: bash
create-args: >-
python=${{ matrix.python-version }}
mamba
pip
pytest-cov
pytest-xdist

- name: Install dev deps
shell: bash -eo pipefail -l {0}
run: |
set -x
echo "${PATH}"
which pip
which python
python -m pip install -r requirements-dev.txt

- name: install conda-lock
shell: bash -eo pipefail -l {0}
Expand Down
Loading
Loading