Skip to content

Adding fixtures

Adding fixtures #11

Workflow file for this run

name: CI
on:
pull_request:
branches: ['main']
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Upgrade pip and install build tools
run: |
python -m pip install --upgrade pip
pip install setuptools wheel build
- name: Build the package
run: |
python -m build
- name: Upload built package
uses: actions/upload-artifact@v3
with:
name: built-package
path: dist/*.whl
test:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Download built package
uses: actions/download-artifact@v3
with:
name: built-package
path: dist
- name: Install package
run: |
pip install dist/*.whl
- name: Install pytest
run: |
pip install pytest
- name: Run tests
run: |
pytest tests