github workflow intro #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
validate-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking out | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: pip install pytest | |
- name: Run test cases | |
run: pytest | |
deploy-test-pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: pip install build twine | |
- name: Build the project | |
run: python -m build | |
- name: Check the build | |
run: twine check dist/* | |
- name: Publish to test PyPI | |
run: twine upload -r testpypi dist/* |