Skip to content

Merge pull request #13 from cooperlees/dependabot/github_actions/dock… #69

Merge pull request #13 from cooperlees/dependabot/github_actions/dock…

Merge pull request #13 from cooperlees/dependabot/github_actions/dock… #69

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
build:
name: bandersnatch CI python ${{ matrix.python-version }} on ${{matrix.os}}
# We want to run on external PRs, but not on our own internal PRs (for the
# pull_request event) as they'll be run by the push to the branch. Without
# this if check, ci workflow checks are duplicated since internal PRs match
# both the push and pull_request events.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.11"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install latest pip, setuptools + black & coverage
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install black coverage
- name: Run Formatting
run: |
black --check *.py
- name: Run Tests
run: |
python -m pip install .
coverage run tests.py
coverage report