Skip to content

Bump action/download-artifact version to v4 #54

Bump action/download-artifact version to v4

Bump action/download-artifact version to v4 #54

Workflow file for this run

# This workflow runs on every push to main. It does the following:
# 1. Checks if black formatting is followed.
# 2. Runs all tests.
name: lint_and_test
on:
pull_request:
push:
branches:
- 'main*'
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
run_tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetched tags too
submodules: true # Checkout submodules
- 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 .[test]
- name: Test with pytest
run: |
pytest tests/