Skip to content

PyPi packaging

PyPi packaging #6

Workflow file for this run

name: CI
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
# - name: Install dependencies (requirements.txt)
# run: |
# python -m pip install --upgrade pip
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install dependencies (pyproject.toml)
run: |
python -m pip install --upgrade pip
pip install build
python -m build --wheel
pip install dist/*.whl
- name: Run flake8 linter
run: |
pip install flake8
flake8 .
- name: Run tests
run: |
pip install pytest
pytest
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: pytest-report.xml