Rewrite action 3 #123
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: Run Python tests | |
on: [push] | |
jobs: | |
build: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
# check-out repo and set-up python | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "Europe/Berlin" | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up python ${{ matrix.python-version }} | |
id: setup-python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# install & configure poetry | |
- name: Install Poetry | |
uses: snok/[email protected] | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Install library | |
run: poetry install --no-interaction --all-extras | |
- name: Install fancy pytest addons | |
run: pip install pytest-md pytest-emoji | |
# test! | |
- name: Test Python ${{ matrix.python-version }} | |
uses: pavelzw/[email protected] | |
with: | |
verbose: true | |
emoji: true | |
job-summary: true | |
click-to-expand: true | |
report-title: 'Byron Test Report' |