build(deps): bump arduino/setup-task from 1 to 2 #49
Workflow file for this run
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: Test | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
concurrency: | |
group: test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run: | |
name: With pytest for Python ${{ matrix.python_version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python_version: [ "3.11" ] | |
steps: | |
- name: 📥 Checkout the repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Task | |
uses: arduino/setup-task@v2 | |
with: | |
version: 3.x | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: 🎵 Install poetry | |
run: pipx install poetry | |
- name: 🛠️ Set up Python ${{ matrix.python_version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "${{ matrix.python_version }}" | |
cache: 'poetry' | |
- name: 📦 Install requirements | |
run: task install | |
- name: 🏃 Run tests | |
env: | |
PYTEST: true | |
run: task tests | |
- name: 📤 Upload coverage to Codecov | |
if: ${{ matrix.python_version == '3.11' }} | |
run: | | |
task coverage | |
curl -sfSL https://codecov.io/bash | bash - |