Skip to content

Commit

Permalink
build: Update pytest parallelism and add Codecov artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Feb 4, 2024
1 parent 68e8831 commit 77dc291
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ jobs:

- name: Test with pytest
run: |
poetry run pytest -n 2 --cov --cov-report xml:coverage-report/coverage.xml
# Github action runners now have 4 cores
poetry run pytest -n 4 --cov --cov-report xml:coverage-report/coverage.xml
- name: Build documentation
run: poetry run make html --directory docs/

- name: Upload coverage report
- name: Upload coverage report artifact to be used by Codecov
uses: actions/upload-artifact@v2
with:
name: coverage-report
Expand Down Expand Up @@ -74,10 +75,10 @@ jobs:
issues: write
pull-requests: write

# needs: Continuous-Integration
needs: Continuous-Integration

# if pulling to main, deploy to PyPI
# if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'

# Set up operating system
runs-on: ubuntu-latest
Expand All @@ -100,11 +101,6 @@ jobs:
- name: Install package
run: poetry install


# Existing jobs...



# This action uses Python Semantic Release v8
# What this action does:
# - Determines the next version number based on the commit history
Expand Down Expand Up @@ -142,10 +138,6 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

- name: Print latest tag name
run: |
printf "%s\n" "${LATEST_TAG}"
- name: Print branch name
run: |
printf "LATEST TAG: %s\n" "${LATEST_TAG}"
Expand Down

0 comments on commit 77dc291

Please sign in to comment.