update upload and download artefacts actions together #149
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: Python black | |
# Run either when pushing directly to main/master or in a PR targeting main/master | |
on: | |
push: | |
branches: | |
- master | |
- main | |
paths: | |
- "**.py" | |
- ".github/workflows/black.yml" | |
pull_request: | |
branches: | |
- master | |
- main | |
# https://github.com/psf/black | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Black | |
uses: psf/black@stable | |
with: | |
options: "--check --verbose --diff --color --config python/pyproject.toml" | |
src: "python/" |