Revert "Fixed error message (#420)" #253
Workflow file for this run
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: Python | |
on: | |
push: | |
paths: | |
- python/** | |
- server/** | |
- .github/workflows/python.yaml | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install dependencies | |
run: | | |
poetry install --no-interaction | |
pip install . | |
working-directory: "python" | |
- name: Install pyteset | |
run: | | |
pip install pytest | |
working-directory: "python" | |
- name: Run tests | |
run: | | |
pytest tests | |
working-directory: "python" | |
build: | |
needs: [ test ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Copy readme | |
run: cp README.md python/README.md | |
- name: Build and publish to pypi | |
uses: JRubics/[email protected] | |
with: | |
pypi_token: ${{ secrets.PYPI_TOKEN }} | |
package_directory: "python" |