Skip to content

Commit

Permalink
Add CI workflow to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-basevi committed May 17, 2024
1 parent 91fc5d1 commit ff8597d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
pull_request:
branches:
- 'main'

jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip

- name: Install model_config_tests
run: pip install -e '.[test]'

- name: Run tests
run: pytest -s tests
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 61.0.0",
"versioneer[toml]"
]

[project]
name = "model-config-tests"
version = "0.0.1"
authors = [
{ name = "ACCESS-NRI", email = "access.nri@anu.edu.au" },
{ name = "ACCESS-NRI" },
]
description = "Test for ACCESS model (payu) configurations"
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
license = { text = "Apache-2.0" }
classifiers = [
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit ff8597d

Please sign in to comment.