Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #15 from LuxDL/ap/downgrade
Browse files Browse the repository at this point in the history
Add downgrade CI
  • Loading branch information
avik-pal committed Feb 12, 2024
2 parents 7e45d35 + 90538d7 commit 0b6d996
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 12 deletions.
7 changes: 2 additions & 5 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ steps:
setup:
julia:
- "1"
- "nightly"
adjustments:
- with:
julia: "nightly"
soft_fail: true

- group: ":telescope: Downstream AMD GPU"
steps:
Expand Down Expand Up @@ -85,4 +80,6 @@ steps:
- "LuxLib"

env:
RETESTITEMS_NWORKERS: 4
RETESTITEMS_NWORKER_THREADS: 2
SECRET_CODECOV_TOKEN: "pzi+i7ulYT/2ysEUMphrG4sYEgQHCqPiPSCej6OmwUiOE7JzFU1q9PwQ9Cv7q0JT+lgQ090cIkBrN6zgLS7rYF97mkNKqoJvGFMorzQ+ojHU0l2hgJGshAb1oxOOEjzneWEQVLjDp3dAYwmixCEHX2XzOz8usADIsNfKe1zq9r2n0PMlc7lTe6VwOtRvJ+Y2eSpsESGNl95HI35mb+35KjpGT8fyKNJ+QVkUX6zhcwm8BB05KHYrJmb66HUoXkAQUsnRR3FijN/aGFBVNmXdk4AlJvkazL5MSX7y5rzCJgx2nfiPz1ITuIK8Y3N/jH2L75iKs85HZ0TdbhHOno7/Sg==;U2FsdGVkX185y4i2XFeuhLYHK3mcKEPOHzoYChLiJyPYe0egwSC7NvcXYc/aLxNi9CCkt1xQCSK7hKSsdYZcGA=="
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ jobs:
- uses: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
fail_ci_if_error: true
41 changes: 41 additions & 0 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Downgrade
on:
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['1.9']
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
- uses: cjdoris/julia-downgrade-compat-action@v1
with:
skip: Pkg,TOML
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: "CPU"
RETESTITEMS_NWORKERS: 4
RETESTITEMS_NWORKER_THREADS: 2
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src,ext
- uses: codecov/codecov-action@v4
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
fail_ci_if_error: true
11 changes: 10 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
name = "LuxAMDGPU"
uuid = "83120cb1-ca15-4f04-bf3b-6967d2e6b60b"
authors = ["Avik Pal <avikpal@mit.edu> and contributors"]
version = "0.2.1"
version = "0.2.2"

[deps]
AMDGPU = "21141c5a-9bdb-4563-92ae-f87d6854732e"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"

[compat]
Aqua = "0.8"
AMDGPU = "0.8"
Reexport = "1"
Test = "1.9"
julia = "1.9"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "Test"]
5 changes: 0 additions & 5 deletions test/Project.toml

This file was deleted.

5 changes: 4 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
using LuxAMDGPU, Test
using Aqua, LuxAMDGPU, Test

@testset "LuxAMDGPU" begin
@test LuxAMDGPU.USE_AMD_GPU[] === nothing

@test LuxAMDGPU.functional() isa Bool

Aqua.test_all(LuxAMDGPU; ambiguities=false)
Aqua.test_ambiguities(LuxAMDGPU)
end

2 comments on commit 0b6d996

@avik-pal
Copy link
Member Author

Choose a reason for hiding this comment

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

@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 created: JuliaRegistries/General/100666

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.2.2 -m "<description of version>" 0b6d9963275ea65304d3c446e518b6525199be3d
git push origin v0.2.2

Please sign in to comment.