Skip to content

Develop: Adding Github Actions #1

Develop: Adding Github Actions

Develop: Adding Github Actions #1

Workflow file for this run

# Author - Stuart McAlpine - stuart.mcalpine@fysik.su.se - Jan 2023
name: DESC Blinding
# How does the workflow get triggered?
on:
# Triggers when push/pull-request made to the main branch.
pull_request:
branches:
- main
push:
branches:
- main
- development
# List of jobs for this workflow.
jobs:
# Our pytest job.
ci-with-pytest:
# Our strategy lists the OS and Python versions we want to test on.
strategy:
# Don't quit all jobs if only one job fails.
fail-fast: false
matrix:
python-version: ["3.8","3.9","3.10"]
os: [ubuntu-latest, macos-latest]
# What operating system is this job running on?
runs-on: ${{ matrix.os }}
# Our CI steps for this job.
steps:
# Check out this repository code.
- name: Check out repository code
uses: actions/checkout@v3
# Install Python.
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Install our package.
- name: Install mydescpackage
run: |
python -m pip install --upgrade pip
python -m pip install .
# Perform unit tests.
- name: Test with pytest
run: pytest ./tests