specifying workspace folder #22
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: CPU Tests | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
do-the-job: | |
name: Do the job on the cpu | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
# - {os: ubuntu-latest, architecture: x64, python-version: '3.10'} | |
# - {os: ubuntu-latest, architecture: x64, python-version: '3.11'} | |
- {os: macos-latest, architecture: arm64, python-version: '3.10'} | |
- {os: macos-latest, architecture: arm64, python-version: '3.11'} | |
steps: | |
- name: Hello World | |
run: echo 'Hello World!' | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pipx and ensure it's up to date | |
run: | | |
python -m pip install --upgrade pipx | |
pipx ensurepath | |
shell: bash | |
- name: Install poetry | |
run: pipx install poetry | |
shell: bash | |
- name: Install dependencies with Poetry | |
run: | | |
poetry install | |
shell: bash | |
- name: Run unit tests | |
run: poetry run pytest |