Cl-test-with multiple machines #8
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: Our CI | |
on: | |
pull_request: | |
push: | |
branchs: | |
- main | |
workflow_dispatch: # At actions, you can allow the manual run of your workflow | |
jobs: | |
test: | |
name: Run tests | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: ["3.8", "3.12"] # Will test it on ubuntu and windows for all 3.8 and 3.12 | |
include: | |
- os: macos-14 | |
- python-version: "3.9" | |
#runs-on: ubuntu-latest # machine that runs on | |
runs-on: ${{ matrix.os }} | |
steps: | |
#- run: echo Hello World # specific the command that you want to run | |
- uses: actions/checkout@v4 # actions are github repos https://github.com/actions/checkout (if pull or pushed will be checkout) | |
- name: Install Python | |
- uses: actions/setup-python@v5 # install a specific python version | |
with: | |
#python-version: "3.11" # need quotation so 3.10 will not be read as 3.1 and will be read by its entirety | |
python-version: ${{ matrix.python-version }} | |
- run: python -m pip install .[test] | |
- name: Run tests | |
- run: python -m pytest |