change working path for tests #215
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 | |
# https://raw.githubusercontent.com/messense/crfs-rs/main/.github/workflows/Python.yml | |
on: | |
push: | |
paths: | |
- python/** | |
- server/** | |
- .github/workflows/python.yaml | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Copy readme | |
run: cp README.md python/README.md | |
- name: Prepare build | |
uses: JRubics/[email protected] | |
with: | |
package_directory: "python" | |
poetry_publish_options: "--dry-run" | |
- name: Run tests | |
working-directory: "python" | |
run: pytest tests | |
- name: Build and publish to pypi | |
uses: JRubics/[email protected] | |
with: | |
pypi_token: ${{ secrets.PYPI_TOKEN }} | |
package_directory: "python" |