Skip to content

Commit

Permalink
use setup python
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Aug 29, 2023
1 parent e7ccfbe commit 6b1cc10
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 31 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,21 @@ jobs:
with:
fetch-depth: 0

- name: Setup Micromamba Python
uses: mamba-org/setup-micromamba@v1
- name: Set up Python
uses: actions/setup-python@v4
with:
environment-name: TEST
init-shell: bash
create-args: >-
python=3 --file requirements.txt --file requirements-dev.txt --channel conda-forge
python-version: "3.x"

- name: Install depfinder
shell: bash -l {0}
run: |
python -m pip install -e . --no-deps --force-reinstall
python -m pip install -e .
- name: Build documentation
run: |
run: >
set -e
micromamba activate TEST
pushd doc
make clean html linkcheck
popd
&& pushd doc
&& make clean html linkcheck
&& popd
- name: Deploy
if: github.event_name == 'release' || github.event_name == 'push'
Expand Down
29 changes: 11 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,28 @@ jobs:

- uses: actions/checkout@v3

- name: Setup Micromamba Python ${{ matrix.python-version }}
uses: mamba-org/setup-micromamba@v1
- name: Set up Python
uses: actions/setup-python@v4
with:
environment-name: TEST
init-shell: bash
create-args: >-
python=${{ matrix.python-version }} --file requirements.txt --file requirements-dev.txt --channel conda-forge
python-version: "${{ matrix.python-version }}"

- name: Install depfinder
shell: bash -l {0}
run: |
python -m pip install -e . --no-deps --force-reinstall
python -m pip install -e .
- name: test w/o conda-forge-metadata
run: |
micromamba activate TEST
run: >
depfinder --help
pip install -e . --force-reinstall
coverage run -m pytest -vrsx test.py
&& pip install -e . --force-reinstall
&& coverage run -m pytest -vrsx test.py
- name: test w/ conda-forge-metadata
run: |
micromamba activate TEST
run: >
pip install -e .[conda-forge] --force-reinstall
coverage run -m pytest -vrsx test.py
&& coverage run -m pytest -vrsx test.py
- name: coverage
run: |
micromamba activate TEST
run: >
coverage report -m
codecov
&& codecov

0 comments on commit 6b1cc10

Please sign in to comment.