Add Flit and change namer
This commit is contained in:
parent
50db7b8cb2
commit
f188724d4b
13 changed files with 138 additions and 119 deletions
2
.github/workflows/docker.yaml
vendored
2
.github/workflows/docker.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
17
.github/workflows/publish.yaml
vendored
17
.github/workflows/publish.yaml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue