Skip to content

bin/podman-vscodium: install deps to develop web Rust projects using … #117

bin/podman-vscodium: install deps to develop web Rust projects using …

bin/podman-vscodium: install deps to develop web Rust projects using … #117

Workflow file for this run

# Documentation on GitHub Actions:
# * Workflow syntax for GitHub Actions
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# * Building and testing Python
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Run tests
on: [push, pull_request]
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# Available Python versions: https://github.com/actions/python-versions/blob/main/versions-manifest.json
# Available PyPy versions: https://downloads.python.org/pypy/versions.json
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "pypy-3.6"
- "pypy-3.7"
- "pypy-3.8"
- "pypy-3.9"
- "pypy-3.10"
exclude:
# macos-14 with arm64 architecture only has Python 3.8+
- os: macos-latest
python-version: "3.7"
# macos-14 with arm64 architecture only has pypy-3.8+
- os: macos-latest
python-version: pypy-3.6
- os: macos-latest
python-version: pypy-3.7
# windows-2022 only has pypy-3.7+
- os: windows-latest
python-version: pypy-3.6
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pycodestyle
- name: Install macOS dependencies
if: ${{ startsWith(matrix.os, 'macos-') }}
run: brew install coreutils
- name: Display versions
run: |
echo "Python:"
python -c 'import sys; print(sys.version)'
echo "pycodestyle:"
pycodestyle --version
echo "shellcheck:"
shellcheck --version || :
shell: bash
- name: Run tests
run: |
if ${{ startsWith(matrix.os, 'windows-') }} ; then
./tests/pep8_python_files.py && \
echo '[ OK ] tests/pep8_python_files.py on Windows' && \
./tests/verify_script_headers.py && \
echo '[ OK ] tests/verify_script_headers.py on Windows' && \
echo '[ OK ] All tests OK on Windows'
else
echo 'Running ./run_tests.sh'
./run_tests.sh
fi
env:
TERM: vt100
shell: bash
- name: Install home files
if: ${{ !startsWith(matrix.os, 'windows-') }}
run: |
if ${{ startsWith(matrix.os, 'macos-') }} ; then
# Remove conflicting local files
cat ~/.gitconfig
rm -v ~/.bash_profile ~/.bashrc ~/.gitconfig
fi
./install.sh
shell: bash
- name: Update branch master
if: ${{ !startsWith(matrix.os, 'windows-') }}
run: |
git remote set-branches origin master
git fetch origin
BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)"
test "${BRANCH_NAME}" = "master" || git checkout origin/master -b master
git checkout "${BRANCH_NAME}"
./update.sh
shell: bash
- name: Dump the configuration
run: bin/config-summary
shell: bash