Add Flit and change namer

This commit is contained in:
Andras Schmelczer 2022-07-05 10:45:51 +02:00
parent 50db7b8cb2
commit f188724d4b
13 changed files with 138 additions and 119 deletions

View file

@ -28,7 +28,7 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: schmelczera/great-ai
images: schmelczera/great_ai
- name: Build and push
uses: docker/build-push-action@v3

View file

@ -16,14 +16,11 @@ jobs:
with:
python-version: 3.9
- name: Install pypa/build
run: python -m pip install build --user
- name: Install Flit
run: pip install --upgrade flit --user
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Build and publish
run: flit publish --setup-py
env:
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

View file

@ -30,11 +30,10 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install --upgrade --requirement dev-requirements.txt
pip install --upgrade .
pip install --upgrade './[dev]'
- name: Check code and formatting
run: scripts/check-python.sh .
run: scripts/check-python.sh . tests
- name: Run tests
run: python3 -m pytest --doctest-modules --cov=. --cov-report=xml --junit-xml pytest.xml --asyncio-mode=strict || true