Skip to content

Remove files since they were interfering with ones from Statick modu… #425

Remove files since they were interfering with ones from Statick modu…

Remove files since they were interfering with ones from Statick modu… #425

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, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install .
pip install .[test]
pip install .[docs]
# Remove apt repos that are known to break from time to time.
# See https://github.com/actions/virtual-environments/issues/323
- name: Remove broken apt repos [Ubuntu]
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
for apt_file in `grep -lr microsoft /etc/apt/sources.list.d/`; do sudo rm $apt_file; done
- name: Install tools (Linux)
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install chktex
sudo apt-get install lacheck
- name: Tox
run: |
python -m tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false
- name: Mypy
run: |
mypy --ignore-missing-imports --strict src/
- name: Statick Markdown
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
uses: sscpac/[email protected]
with:
profile: documentation.yaml
timings: true
- name: Statick
if: matrix.os == 'ubuntu-20.04' || matrix.os == 'ubuntu-22.04'
uses: sscpac/[email protected]
with:
profile: self_check.yaml
timings: true