Skip to content

Commit f38187c

Browse files
committed
Remove requirements-dev.txt
1 parent 425b384 commit f38187c

File tree

4 files changed

+19
-54
lines changed

4 files changed

+19
-54
lines changed

.github/workflows/mkdocs.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ on:
44
branches:
55
- main
66

7+
# Default to bash in login mode; key to activating conda environment
8+
# https://github.com/mamba-org/provision-with-micromamba#IMPORTANT
9+
defaults:
10+
run:
11+
shell: "bash -l {0}"
12+
713
permissions:
814
contents: write
915
pages: write
1016

17+
env:
18+
MICROMAMBA_VERSION: 'latest'
19+
1120
jobs:
1221
build:
1322
name: Deploy docs
@@ -19,19 +28,15 @@ jobs:
1928
submodules: "recursive"
2029
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
2130

22-
- name: Setup Python
23-
uses: actions/setup-python@v4
24-
with:
25-
python-version: '3.9'
26-
architecture: 'x64'
2731
- name: Install dependencies
28-
run: |
29-
python3 -m pip install --upgrade pip # install pip
30-
python3 -m pip install -r requirements-dev.txt # install dev deps
32+
uses: "mamba-org/setup-micromamba@v1"
33+
with:
34+
micromamba-version: "${{ env.MICROMAMBA_VERSION }}"
35+
environment-file: "environments/dev-environment.yaml"
36+
cache-environment: true
3137

3238
- name: Install conda-lock
33-
run: |
34-
python3 -m pip install .
39+
run: "pip install ."
3540

3641
- name: Build site
3742
run: mkdocs build
@@ -42,4 +47,4 @@ jobs:
4247
github_token: ${{ secrets.GITHUB_TOKEN }}
4348
publish_dir: ./site
4449
user_name: 'github-actions[bot]'
45-
user_email: 'github-actions[bot]@users.noreply.github.com'
50+
user_email: 'github-actions[bot]@users.noreply.github.com'

.github/workflows/test.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,10 @@ jobs:
3131
uses: mamba-org/setup-micromamba@v1
3232
with:
3333
micromamba-version: ${{ env.MICROMAMBA_VERSION }}
34-
environment-name: test-env
34+
environment-file: environments/dev-environment.yaml
3535
init-shell: powershell
3636
create-args: >-
3737
python=3.11
38-
mamba
39-
pip
40-
pytest-cov
41-
pytest-xdist
42-
43-
- name: Install dev deps
44-
run: |
45-
python -m pip install -r requirements-dev.txt
4638
4739
- name: install conda-lock
4840
run: |
@@ -78,23 +70,10 @@ jobs:
7870
- uses: mamba-org/setup-micromamba@v1
7971
with:
8072
micromamba-version: ${{ env.MICROMAMBA_VERSION }}
81-
environment-name: test-env
73+
environment-file: environments/dev-environment.yaml
8274
init-shell: bash
8375
create-args: >-
8476
python=${{ matrix.python-version }}
85-
mamba
86-
pip
87-
pytest-cov
88-
pytest-xdist
89-
90-
- name: Install dev deps
91-
shell: bash -eo pipefail -l {0}
92-
run: |
93-
set -x
94-
echo "${PATH}"
95-
which pip
96-
which python
97-
python -m pip install -r requirements-dev.txt
9877
9978
- name: install conda-lock
10079
shell: bash -eo pipefail -l {0}

environments/dev-environment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ channels:
44
- conda-forge
55
- nodefaults
66
dependencies:
7+
- mamba
78
- black
89
- check-manifest
910
- doctr

requirements-dev.txt

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)