Skip to content

Switch back to using API token for PyPI. We should update to trusted publishing later. #191

Switch back to using API token for PyPI. We should update to trusted publishing later.

Switch back to using API token for PyPI. We should update to trusted publishing later. #191

Workflow file for this run

---
name: Unit Tests
on: # NOLINT
pull_request:
push:
schedule:
- cron: '0 10 * * MON'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install .[docs,test]
- name: Install Node-based tools (Linux)
if: runner.os == 'Linux'
run: |
npm install -g markdownlint-cli
npm install -g dockerfilelint
npm install -g dockerfile_lint
# Do not install on macos until there is a hadolint release for macos (Darwin on arm64 architecture).
- name: Install Hadolint binary (github)
if: runner.os == 'Linux' || runner.os == 'Windows'
run: |
mkdir -p $HOME/.local/bin
echo "$HOME/.local/bin" >> $GITHUB_PATH
curl -sL -o hadolint https://github.com/hadolint/hadolint/releases/download/v2.6.0/hadolint-$(uname -s)-$(uname -m)
chmod +x hadolint
mv hadolint $HOME/.local/bin/
- name: Install Hadolint docker image (Linux)
if: runner.os == 'Linux'
run: |
docker pull hadolint/hadolint:latest
- name: Mypy
run: |
mypy --ignore-missing-imports --strict src/
- name: Tox
run: |
python -m tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
- name: Statick Documentation
if: runner.os == 'Linux'
run: |
statick . --check --user-paths . --profile documentation.yaml
- name: Self check
if: runner.os == 'Linux'
run: |
mkdir statick-output
statick . --output-directory statick-output --check --profile self_check.yaml