Update actions/checkout digest to 8ade135 #67
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
# Allows running this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
pip install -r src/requirements.txt -r tests/requirements.txt . | |
- name: Run Black | |
run: black --check . | |
- name: Run Flake8 | |
run: flake8 . | |
- name: Run isort | |
run: isort --check . | |
- name: Run tests and collect coverage | |
run: pytest --timeout=300 --junitxml=junit/test-results.xml --cov=relay --cov=tests --cov-report=xml --cov-report=html | |
- name: Upload pytest test results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pytest-results | |
path: junit/test-results.xml | |
# Always run this step, even when there are test failures | |
if: ${{ always() }} | |
- name: Upload coverage to https://codecov.io | |
uses: codecov/codecov-action@v3 | |
# See https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries | |
# | |
# - name: Build package | |
# run: python -m build | |
# - name: Publish package | |
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | |
# with: | |
# user: __token__ | |
# password: ${{ secrets.PYPI_API_TOKEN }} |