check output #51
Workflow file for this run
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: http-toolkit-test | ||
on: [push] | ||
env: | ||
TEST_DEPENDENCIES: "tox~=4.15.1" | ||
jobs: | ||
check-github-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Release Existence Action | ||
id: check-tag | ||
uses: insightsengineering/[email protected] | ||
with: | ||
release-tag: "1.0.0" | ||
another-job: | ||
needs: check-release-exists | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.check-release-exists.outputs.release-exists == 'true' }} | ||
steps: | ||
- run: echo "Release for tag exists" | ||
check-project-files: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: variables | ||
run: | | ||
PROJECT_FILES=(README.md pyproject.toml tox.ini) | ||
ERROR=0 | ||
- name: test | ||
run: | | ||
for file in ${PROJECT_FILES[*]}; do | ||
if ! [ -f $file ]; then | ||
echo "$file not found in project" | ||
ERROR=1 | ||
fi | ||
done | ||
exit $ERROR | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
linters: [pyproject, flake8, mypy] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: python-build | ||
uses: ./.github/actions/python-build | ||
- name: install-dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip install $TEST_DEPENDENCIES | ||
- name: test | ||
run: tox -e "${{ matrix.linters }}" | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
minor_versions: [8, 9, 10, 11, 12] | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.${{ matrix.minor_versions }}' | ||
- name: install-dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip install $TEST_DEPENDENCIES | ||
- name: test | ||
run: tox -e "py3${{ matrix.minor_versions }}" | ||