Skip to content

Dockerfile fix and remove deprecated log-config-file #73

Dockerfile fix and remove deprecated log-config-file

Dockerfile fix and remove deprecated log-config-file #73

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9, "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
env_vars: OS,PYTHON
publish:
runs-on: ubuntu-latest
needs: [tests]
if: startsWith(github.ref, 'refs/tags')
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Build source distribution
run: python setup.py sdist
- run: echo "${{ github.ref }}"
- name: Publish package on PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}