Skip to content

Commit

Permalink
split build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
javierluraschi committed Jul 25, 2024
1 parent f7cbeeb commit f8c7594
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,28 @@ on:
- .github/workflows/python.yaml

jobs:
build:
test:
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:
pypi_token: ${{ secrets.PYPI_TOKEN }}
package_directory: "python"
poetry_publish_options: "--dry-run"
- name: Run tests
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
python -m poetry install .
working-directory: "python"
- name: Run tests
run: |
pip install pytest
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:
Expand Down

0 comments on commit f8c7594

Please sign in to comment.