Skip to content

Bump version: v1.0.0a0 -> v1.0.0 #56

Bump version: v1.0.0a0 -> v1.0.0

Bump version: v1.0.0a0 -> v1.0.0 #56

Workflow file for this run

name: CI - Tests
on:
pull_request:
push:
branches:
- main
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version}}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version}}
- name: Install initial dependencies
run: |
python -m pip install -U pip
pip install -e .[dev]
- name: Run test
run: pytest -v tests/ --cov=ipyoptimade
- name: Upload coverage to Codecov
if: matrix.python-version == '3.11' && github.repository == 'aiidalab/ipyoptimade'
uses: codecov/codecov-action@v4
with:
name: ipyoptimade
flags: ipyoptimade-py-${{ matrix.python-version }}
binder:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'aiidalab/ipyoptimade'
needs: pytest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: update jupyter dependencies with repo2docker
uses: jupyterhub/repo2docker-action@master
with:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} # aiidalabbot
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_NAME: aiidalab/ipyoptimade
BINDER_CACHE: true
PUBLIC_REGISTRY_CHECK: true