Skip to content

Commit

Permalink
restore workflow yml to orig state
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaflott committed Nov 7, 2024
1 parent ea6ffc9 commit 51a94d4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 33 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
62 changes: 31 additions & 31 deletions .github/workflows/create_test_conda_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,36 +32,36 @@ jobs:
## 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 51a94d4

Please sign in to comment.