Merge pull request #40 from softnanolab/dev-v0.7.0 #142
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
# Builds using pip and tests using pytest | |
name: Build | |
on: push | |
jobs: | |
build: | |
strategy: | |
matrix: | |
version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.version }} | |
- name: Update Dependencies | |
run: pip install --upgrade pip setuptools wheel | |
- name: Install | |
run: pip install . | |
- name: Test | |
run: pip install pytest && pytest | |
- name: Ruff | |
uses: chartboost/ruff-action@v1 | |
- name: Test project generation | |
run: pip install pre-commit && softnanotools.generate project example --pre-commit --pip-install && python -c "import example" |