Skip to content

Commit

Permalink
🚇🧪 Add job to run tests with requirements_min
Browse files Browse the repository at this point in the history
  • Loading branch information
s-weigand committed Jun 30, 2024
1 parent 3e56ced commit 75b7cfa
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,55 @@ jobs:
- name: Run tests
run: python -m pytest --nbval --cov=./ --cov-report term --cov-report xml --cov-config pyproject.toml tests

- name: Codecov Upload
continue-on-error: true
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
name: test-pyglotaran-dev
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test-min-versions:
name: Test dependency min versions
runs-on: ubuntu-latest
needs: [pre-commit, docs]

steps:
- name: Check out repo
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install -r requirements_min.txt
python -m pip install -e ".[test]"
- name: Show installed dependencies
run: pip freeze

- name: Run tests
run: python -m pytest --nbval --cov=./ --cov-report term --cov-report xml --cov-config pyproject.toml tests

- name: Codecov Upload
continue-on-error: true
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
name: test-min-versions
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

deploy:
name: Deploy to PyPi
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
needs: test
needs: [test, test-pyglotaran-dev, test-min-versions]
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
Expand Down

0 comments on commit 75b7cfa

Please sign in to comment.