Skip to content

Bump actions/upload-artifact from 3 to 4 #703

Bump actions/upload-artifact from 3 to 4

Bump actions/upload-artifact from 3 to 4 #703

Workflow file for this run

name: Testing
on: [push, workflow_dispatch]
jobs:
test:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: ["ubuntu-latest"]
include:
- python-version: "3.6"
os: ubuntu-20.04
name: Python ${{ matrix.python-version }}-x64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
pip install -r .github/build_requirements.txt -r requirements.txt
sudo apt-get update
sudo apt-get install libgl1-mesa-dev
- name: Print info
env:
PYUNITY_TESTING: 0
run: python -m pyunity -v
- name: Run tests
env:
full: 1
PYUNITY_INTERACTIVE: 0
run: pytest
- name: Run mypy
if: ${{ matrix.python-version == '3.11' }}
run: |
pip install mypy>=1.4.0
mypy -p pyunity
- name: Run stubtest
if: ${{ matrix.python-version == '3.11' }}
env:
PYUNITY_CHANGE_MODULE: 0
run: |
python -m mypy.stubtest --mypy-config-file pyproject.toml \
--ignore-unused-allowlist --allowlist .github/stubtest-ignore.txt \
pyunity
- name: Generate report
if: ${{ matrix.python-version == '3.11' }}
run: coverage xml
- name: Upload report
if: ${{ matrix.python-version == '3.11' }}
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: false