Skip to content

Bump actions/checkout from 3 to 4 #33

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #33

Workflow file for this run

name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
name: πŸ”¨ Build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: πŸ— Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: πŸ— Install build dependencies
run: |
python -m pip install wheel --user
- name: πŸ”¨ Build a binary wheel and a source tarball
run: |
python setup.py sdist bdist_wheel
pre-commit:
name: 🧹 Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: πŸ— Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: πŸ— Set up pre-commit
run: |
pip install pre-commit
- name: πŸš€ Run pre-commit
run: |
pre-commit run --all-files --show-diff-on-failure
test-unit:
name: πŸ§ͺ Pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: πŸ— Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: πŸ— Set up dependencies
run: |
pip install -e . -r requirements.txt
- name: πŸš€ Run test suite
run: |
pytest