Skip to content

Commit

Permalink
Add melange tests
Browse files Browse the repository at this point in the history
Signed-off-by: Mark McCormick <[email protected]>
  • Loading branch information
mamccorm committed Oct 9, 2024
1 parent 5e7d811 commit b2d971b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions py3-isodate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,23 @@ update:
github:
use-tag: true
identifier: gweis/isodate

test:
environment:
contents:
packages:
- py3-isodate
pipeline:
- name: Verify Installation
runs: |
# Check that the isodate package is installed
python3 -c "import isodate" || exit 1
echo "isodate package is installed."
- name: Test Basic Date Parsing
runs: |
# Test parsing a simple ISO 8601 date string
python3 -c "
import isodate
dt = isodate.parse_date('2024-10-09')
assert dt.year == 2024 and dt.month == 10 and dt.day == 9
print('Date parsing passed.')"

0 comments on commit b2d971b

Please sign in to comment.