fix: only log env variables when debugging logging (#234) #883
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install Riot | |
run: pip install . | |
- run: riot -v run -s black -- --check . | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install Riot | |
run: pip install . | |
- run: riot -v run -s mypy | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install Riot | |
run: pip install . | |
- run: riot -v run docs | |
- uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6 | |
with: | |
name: docs | |
path: docs/_build | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install Riot | |
run: pip install . | |
- run: riot -v run -s flake8 | |
test: | |
strategy: | |
matrix: | |
# macos-14/latest uses arm64 | |
os: [ubuntu-latest, macos-13] | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", pypy-3.7] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Install Riot | |
run: pip install . | |
- name: Run tests | |
run: riot -v run --python=${{ matrix.python-version }} test | |
- name: Coverage | |
run: riot -v run -s --python=${{ matrix.python-version }} codecov |