Update to v1.0 #50
Workflow file for this run
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
# Upon a push to master, this workflow will: | |
# -- install mars_time | |
# -- run all tests | |
# -- run the linter | |
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
test-mars_time: | |
name: "Test mars_time on ${{ matrix.os }} using Python ${{ matrix.python-version }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12] | |
python-version: [3.9, "3.10", "3.11"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install mars_time and testing utilities | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install .[dev] | |
- name: Test with pytest | |
run: | | |
python -m pytest mars_time | |
- name: Lint with pylint | |
run: | | |
python -m pylint --exit-zero mars_time |