Skip to content

Add tests with Python 3.11 #49

Add tests with Python 3.11

Add tests with Python 3.11 #49

Workflow file for this run

# This workflow runs Unit-Tests for salted on MacOS
# with the two latest Python versions.
#
# Flake8 will be run with the Ubuntu Workflow.
# Mypy runs separately.
# => There is no need to repeat these here.
name: MacOS Test
on: [push, pull_request]
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11']
steps:
- name: System Update
run: softwareupdate -i -a
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install wheel
pip install -r requirements.txt
- name: Install test utilities
run: |
pip install pytest pytest_mock pyfakefs
- name: Test with pytest
run: |
pytest tests.py