Skip to content

Merge pull request #20 from bellingcat/fix-cdx-overload #33

Merge pull request #20 from bellingcat/fix-cdx-overload

Merge pull request #20 from bellingcat/fix-cdx-overload #33

Workflow file for this run

name: Run tests and publish
on:
pull_request:
push:
branches:
- main
tags:
- 'v*.*.*'
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install poetry dependencies
run: |
pip install poetry
poetry config virtualenvs.create false
poetry install
- name: Run tests
run: |
poetry run python -m unittest discover
release:
name: Release
runs-on: ubuntu-latest
needs: [checks]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.17
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
python_version: 3.9