Skip to content

Commit

Permalink
Add Windows and macOS CI tests and only run coverage on Ubuntu with l…
Browse files Browse the repository at this point in the history
…atest Julia version (#444)

* Run coverage tests only with latest Julia version

* Wrap expression in ${{ ... }}

* Run tests on Windows and macOS-ARM

* Only run coverage on Ubuntu

* Fix CI

* Try again

---------

Co-authored-by: Sven Berger <[email protected]>
  • Loading branch information
efaulhaber and svchb authored Mar 8, 2024
1 parent 84b914a commit a3ffe9d
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
- '.github/workflows/TagBot.yml'
- 'docs/**'
pull_request:
paths-ignore:
paths-ignore:

This comment has been minimized.

Copy link
@efaulhaber

efaulhaber Mar 8, 2024

Author Member
- 'AUTHORS.md'
- 'CITATION.bib'
- 'CONTRIBUTING.md'
Expand All @@ -35,13 +35,25 @@ concurrency:

jobs:
build:
name: Run Tests
name: Run Tests (Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }})
runs-on: ubuntu-latest
strategy:
matrix:
version:
- '1.9'
- '1'
os:
- ubuntu-latest
arch:
- x64
include:
# Also run tests on Windows and macOS-ARM, but only with the latest Julia version
- version: '1'
os: windows-latest
arch: x64
- version: '1'
os: macos-14
arch: arm64

steps:
- name: Check out project
Expand All @@ -57,14 +69,19 @@ jobs:
uses: julia-actions/julia-runtest@v1
with:
annotate: true
coverage: true
# Only run coverage in one Job (Ubuntu and latest Julia version)
coverage: ${{ matrix.os == 'ubuntu-latest' && matrix.version == '1' }}
env:
TRIXIPARTICLES_TEST: unit
- name: Process coverage results
# Only run coverage in one Job (Ubuntu and latest Julia version)
if: matrix.os == 'ubuntu-latest' && matrix.version == '1'
uses: julia-actions/julia-processcoverage@v1
with:
directories: src,test
- name: Upload coverage report to Codecov
# Only run coverage in one Job (Ubuntu and latest Julia version)
if: matrix.os == 'ubuntu-latest' && matrix.version == '1'
uses: codecov/codecov-action@v4
with:
files: lcov.info
Expand Down

1 comment on commit a3ffe9d

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/102300

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" a3ffe9d0ad5f012867b961c448a671efce82c73a
git push origin v0.1.0

Please sign in to comment.