Skip to content

ci: target the main branch instead of mainline #8

ci: target the main branch instead of mainline

ci: target the main branch instead of mainline #8

Workflow file for this run

name: Basic CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
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 dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Lint with flake8 and pylint
run: |
make lint
- name: Test with pytest
run: |
make test
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Build package
run: |
python -m pip install --upgrade pip build twine
python -m build
- name: Check package
run: |
python -m twine check dist/*