Bump version: 1.3.0 → 1.4.0 #187
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: tests | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
run-test-suite: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name : Install pipenv | |
run : python -m pip install --upgrade pipenv | |
- id: cache-pipenv | |
uses: actions/cache@v3 | |
with: | |
path: ~/.local/share/virtualenvs | |
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}_v2 | |
- name: Install dependencies | |
if: steps.cache-pipenv.outputs.cache-hit != 'true' | |
run: | | |
cd ${{ github.workspace }} | |
pipenv install --dev | |
- name: Install atoMEC | |
run: | | |
cd ${{ github.workspace }} | |
pipenv run pip install -e . | |
- name: Run test suite | |
run: pipenv run pytest --cov=atoMEC --cov-report=xml --random-order tests/ | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |