Skip to content

Added netlify.toml

Added netlify.toml #58

Workflow file for this run

name: deploy-test-pypi
on:
push:
#branches: [main]
tags:
- "v*"
workflow_dispatch:
jobs:
unit-test-and-lint:
runs-on: ubuntu-latest
steps:
- name: Check-out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[tests]"
pip install ruff
- name: Style check
run: |
ruff check src/
- name: Run tests with coverage
run: |
pytest --cov --cov-report=term --cov-branch
build-deploy:
needs: unit-test-and-lint
runs-on: ubuntu-latest
steps:
- name: Check-out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install hatch
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Build package
run: |
hatch build
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
repository-url: https://test.pypi.org/legacy/

Check failure on line 66 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 66
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
verbose: true
#skip-existing: true