Skip to content

fix: restrict triggering of GitHub Actions #69

fix: restrict triggering of GitHub Actions

fix: restrict triggering of GitHub Actions #69

Workflow file for this run

# This workflow will install Python dependencies and run the tests
name: Test
on:
push:
branches: [ main, github_actions ]
pull_request:
branches: [ main ]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10", "3.11"]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- run: poetry install
- run: poetry run pytest tests