Merge pull request #349 from PabloLec/dependabot/pip/mypy-1.8.0 #1201
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: tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
fail-fast: false | |
env: | |
IS_GITHUB_RUNNER: "true" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install poetry | |
poetry export --dev --without-hashes --output requirements.txt | |
pip install -r requirements.txt | |
sudo apt install progress -y | |
- name: Run tests | |
run: pytest | |
- name: Run Mypy | |
run: mypy recoverpy --strict | |
automerge-dependabot: | |
runs-on: ubuntu-latest | |
needs: test | |
if: github.actor == 'dependabot[bot]' && github.event.pull_request.user.login == 'dependabot[bot]' | |
steps: | |
- name: Enable auto-merge for Dependabot PRs | |
run: gh pr merge --auto --merge "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GH_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }} |