Skip to content

MNT: Use hash for Action workflow versions and update if needed #91

MNT: Use hash for Action workflow versions and update if needed

MNT: Use hash for Action workflow versions and update if needed #91

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
pull_request:
jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- name: Python 3.8.13 with minimal dependencies
os: ubuntu-latest
python: 3.8.13
toxenv: py38-test
- name: Python 3.8.13 with all optional dependencies
os: ubuntu-latest
python: 3.8.13
toxenv: py38-test-alldeps
toxargs: -v --develop
toxposargs: --open-files
# - name: Python 3.9.0 with all optional dependencies (Windows)
# os: windows-latest
# python: 3.9.0
# toxenv: py38-test-alldeps
# - name: Python 3.8.13 with all optional dependencies (MacOS X)
# os: macos-latest
# python: 3.8.13
# toxenv: py38-test-alldeps
steps:
- name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ matrix.python }}
- name: Install language-pack-de and tzdata
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get install language-pack-de tzdata
- name: Install Python dependencies
run: python -m pip install --upgrade tox codecov sphinx_rtd_theme
- name: Run tests
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
- name: Upload coverage to codecov
if: ${{ contains(matrix.toxenv,'-cov') }}
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
file: ./coverage.xml
allowed_failures:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Code style checks
os: ubuntu-latest
python: 3.x
toxenv: codestyle
steps:
- name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ matrix.python }}
- name: Install language-pack-de and tzdata
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get install language-pack-de tzdata
- name: Install Python dependencies
run: python -m pip install --upgrade tox codecov sphinx_rtd_theme
- name: Run tests
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}