ENH: Implement size_per_learner
in SlurmExecutor
#641
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update environment.yml | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
update_readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Run update-environment | |
run: python .github/update-environment.py | |
- name: Commit updated environment.yml | |
id: commit | |
run: | | |
git add environment.yml docs/environment.yml | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
if git diff --quiet && git diff --staged --quiet; then | |
echo "No changes in environment.yml, skipping commit." | |
echo "commit_status=skipped" >> $GITHUB_ENV | |
else | |
git commit -m "Update environment.yml" | |
echo "commit_status=committed" >> $GITHUB_ENV | |
fi | |
- name: Push changes | |
if: env.commit_status == 'committed' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.head_ref }} |