Skip to content

CI: add workflow for publishing to PyPI #32

CI: add workflow for publishing to PyPI

CI: add workflow for publishing to PyPI #32

Workflow file for this run

name: Tests
on:
push:
branches: [ main, ]
pull_request:
branches: [ main, ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: Python ${{ matrix.python-version }} (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [Ubuntu]
python-version: ["3.9", "3.10"]
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout repository and submodules
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: Test with pytest
run: |
python -m pytest