Skip to content

Commit

Permalink
put workflow files back to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaflott committed Nov 7, 2024
1 parent 09daa37 commit f1b27f4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 36 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: build_conda
on:
pull_request:
branches:
- FOO
# - main
- main
jobs:
build:
runs-on: ubuntu-latest
Expand Down
68 changes: 34 additions & 34 deletions .github/workflows/create_test_conda_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,41 +27,41 @@ jobs:
# add conda env's executables to github's PATH equiv.
echo $CONDA/envs/fre-cli/bin >> $GITHUB_PATH
## use *conda environment's pip* to install fre-cli
## called w/ full path to conda's python for explicitness
## called as a module (-m pip) for explicitness
# use *conda environment's pip* to install fre-cli
# called w/ full path to conda's python for explicitness
# called as a module (-m pip) for explicitness
$CONDA/envs/fre-cli/bin/python -m pip install --prefix $CONDA/envs/fre-cli .
# - name: Run pytest in fre-cli environment
# run: |
# # try to make sure the right things are in GITHUB_PATH
# echo $CONDA/envs/fre-cli/bin >> $GITHUB_PATH
#
# # are we talking to the right python?
# which python
# python --version
# $CONDA/envs/fre-cli/bin/python --version
#
# # run pytest
# pytest --junit-xml=pytest_results.xml --config-file=fre/pytest.ini --cov-config=fre/coveragerc --cov-report=xml --cov=fre fre/
#
# # install genbadge to generate coverage badge based on xml
# pip install genbadge
# genbadge coverage -v -i coverage.xml -o docs/cov_badge.svg
# genbadge tests -v -i pytest_results.xml -o docs/pytest_badge.svg
#
# - name: Run pylint in fre-cli environment
# run: |
# # try to make sure the right things are in GITHUB_PATH
# echo $CONDA/envs/fre-cli/bin >> $GITHUB_PATH
#
# # are we talking to the right python?
# which python
# python --version
# $CONDA/envs/fre-cli/bin/python --version
#
# # run pylint, ignored modules avoid warnings arising from code internal to those modules
# pylint --max-args 6 -ry --ignored-modules netCDF4,cmor fre/ || echo "pylint returned non-zero exit code. preventing workflow from dying with this echo."
- name: Run pytest in fre-cli environment
run: |
# try to make sure the right things are in GITHUB_PATH
echo $CONDA/envs/fre-cli/bin >> $GITHUB_PATH
# are we talking to the right python?
which python
python --version
$CONDA/envs/fre-cli/bin/python --version
# run pytest
pytest --junit-xml=pytest_results.xml --config-file=fre/pytest.ini --cov-config=fre/coveragerc --cov-report=xml --cov=fre fre/
# install genbadge to generate coverage badge based on xml
pip install genbadge
genbadge coverage -v -i coverage.xml -o docs/cov_badge.svg
genbadge tests -v -i pytest_results.xml -o docs/pytest_badge.svg
- name: Run pylint in fre-cli environment
run: |
# try to make sure the right things are in GITHUB_PATH
echo $CONDA/envs/fre-cli/bin >> $GITHUB_PATH
# are we talking to the right python?
which python
python --version
$CONDA/envs/fre-cli/bin/python --version
# run pylint, ignored modules avoid warnings arising from code internal to those modules
pylint --max-args 6 -ry --ignored-modules netCDF4,cmor fre/ || echo "pylint returned non-zero exit code. preventing workflow from dying with this echo."
- name: Install Sphinx and Build Documentation
run: |
Expand All @@ -72,7 +72,7 @@ jobs:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit f1b27f4

Please sign in to comment.