Skip to content

Also change AgeDataConfig to use Schema #286

Also change AgeDataConfig to use Schema

Also change AgeDataConfig to use Schema #286

Workflow file for this run

name: build
on:
push:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Upgrade pip and Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[test]
- name: Test with pytest and Generate Coverage Report
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)/src
pytest --cov=./ --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Build package distribution
if: startsWith(github.ref, 'refs/tags')
run: |
python -m pip install build
python -m build --sdist --wheel --outdir dist/ .
- name: Publish package distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1.9
with:
skip_existing: true
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}