Closed ma7dev closed 2 years ago
name: Run tests on: push: branches: - main - develop - dev/* paths-ignore: - 'docs/**' - '**.md' - README.md pull_request: types: - opened - reopened branches: - main - develop - dev/* paths-ignore: - 'docs/**' - '**.md' - README.md jobs: tests: runs-on: ubuntu-latest steps: ... - name: Checkout repository uses: https://github.com/actions/checkout/tree/v2v2 - name: Run tests run: | echo "Running tests..." python -m pytest tests
name: publish_package_to_pypi on: push: branches: ['main'] jobs: publish: runs-on: ubuntu-latest steps: ... - name: Publish Package run: | echo "Building package..." python -m poetry build echo "Publish package..." python -m poetry publish --username=${{ secrets.PYPIUSERNAME }} --password=${{ secrets.PYPIPASSWORD }}
Examples
ci.yml
publish.yml