ci: limit parallel tests to 2 #402
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: "🎳 Tester" | ||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "**/*.py" | ||
- ".github/workflows/tests.yml" | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "**/*.py" | ||
- ".github/workflows/tests.yml" | ||
- "requirements/base.txt" | ||
- "requirements/testing.txt" | ||
env: | ||
PROJECT_FOLDER: "geotribu_cli" | ||
jobs: | ||
unit-test: | ||
strategy: | ||
matrix: | ||
fail-fast: false | ||
Check failure on line 25 in .github/workflows/tests.yml GitHub Actions / 🎳 TesterInvalid workflow file
|
||
max-parallel: 2 | ||
os: | ||
- macos-latest | ||
- ubuntu-22.04 | ||
- windows-latest | ||
python-version: | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Get source code | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
cache-dependency-path: "requirements/*.txt" | ||
- name: Install project requirements | ||
run: | | ||
python -m pip install -U pip setuptools wheel | ||
python -m pip install -U -r requirements.txt | ||
python -m pip install -U -r requirements/testing.txt | ||
- name: Install project as a package | ||
run: python -m pip install -e .[all] | ||
- name: Unit tests | ||
env: | ||
GEOTRIBU_MASTODON_API_ACCESS_TOKEN: ${{ secrets.GEOTRIBU_MASTODON_API_ACCESS_TOKEN }} | ||
run: pytest | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
integration-test: | ||
strategy: | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-22.04 | ||
- windows-latest | ||
python-version: | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Get source code | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
cache-dependency-path: "requirements/*.txt" | ||
- name: Install project requirements | ||
run: | | ||
python -m pip install -U pip setuptools wheel | ||
python -m pip install -U -r requirements.txt | ||
- name: Install project as a package | ||
run: python -m pip install -e .[all] | ||
- name: CLI - Echoing version | ||
run: geotribu --version | ||
- name: CLI - Echoing help | ||
run: geotribu --help |